Author: manolo
Date: 2012-04-04 06:45:22 -0700 (Wed, 04 Apr 2012)
New Revision: 9318
Log:
Fix FLTK 1 compat bug where delete (Fl_Window*)w; did not delete the window.
The change in FLTK 1 widget destructors is radical, but seems correct.

Modified:
   branches/branch-3.0/include/fltk3/Wrapper.h

Modified: branches/branch-3.0/include/fltk3/Wrapper.h
===================================================================
--- branches/branch-3.0/include/fltk3/Wrapper.h 2012-04-04 11:34:13 UTC (rev 
9317)
+++ branches/branch-3.0/include/fltk3/Wrapper.h 2012-04-04 13:45:22 UTC (rev 
9318)
@@ -141,12 +141,15 @@
  */
 
 
+#define FLTK3_WRAPPER_VCALLS_OBJECT_DTOR(type1, type3) ~type1() { }
+/*
 #define FLTK3_WRAPPER_VCALLS_OBJECT_DTOR(type1, type3) \
 virtual ~type1() { \
   if ( !(pVCalls & pVCallDtor) ) { \
     pVCalls |= pVCallDtor; \
   } \
 }
+*/
 
 #define FLTK3_WRAPPER_VCALLS_OBJECT(type, klass, proto, call, flag) \
 virtual void proto { \

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to