Author: AlbrechtS
Date: 2010-09-06 01:32:24 -0700 (Mon, 06 Sep 2010)
New Revision: 7698
Log:
Fixed double free of ValueSlider's label (STR #2412)


Modified:
   trunk/CHANGES
   trunk/src/ValueSlider.cxx

Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES       2010-09-04 15:01:07 UTC (rev 7697)
+++ trunk/CHANGES       2010-09-06 08:32:24 UTC (rev 7698)
@@ -2594,3 +2594,7 @@
 TextEditor (FLTK 1.1 - STR #1227). This has also been discussed in
 fltk.bugs in Dec. 2008 (please refer to STR #2276), but not yet
 completely fixed.
+
+////////////////////////////////////////////////////////////////
+
+Fixed double free of ValueSlider's label (STR #2412)

Modified: trunk/src/ValueSlider.cxx
===================================================================
--- trunk/src/ValueSlider.cxx   2010-09-04 15:01:07 UTC (rev 7697)
+++ trunk/src/ValueSlider.cxx   2010-09-06 08:32:24 UTC (rev 7698)
@@ -103,7 +103,7 @@
   input.label(label());
   input.align(align());
   //input.copy_style(style());
-  input.flags(flags()|CLICK_TO_FOCUS);
+  input.flags((flags()|CLICK_TO_FOCUS)&(~COPIED_LABEL));
   push_matrix();
   translate(input.x(),input.y());
   input.draw();

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

Reply via email to