DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2406
Version: 1.3-current
the measure label function only calls one const function, namely
label_.measure
so this function could as well be const making it possible to call it from
a const pointer
One line patch appended.
Link: http://www.fltk.org/str.php?L2406
Version: 1.3-current
Index: FL/Fl_Widget.H
===================================================================
--- FL/Fl_Widget.H (Revision 7677)
+++ FL/Fl_Widget.H (Arbeitskopie)
@@ -918,7 +920,7 @@
/** Sets width ww and height hh accordingly with the label size.
Labels with images will return w() and h() of the image.
*/
- void measure_label(int& ww, int& hh) {label_.measure(ww, hh);}
+ void measure_label(int& ww, int& hh) const {label_.measure(ww, hh);}
/** Returns a pointer to the primary Fl_Window widget.
\retval NULL if no window is associated with this widget.
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs