summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-10-30 19:18:05 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-10-30 19:18:05 +0000
commit2ca4600a7ef3750144c990be4612827f3d2277f5 (patch)
tree8fc49868b6da8f6ebe22c80f6af437fe6e2c4673 /FL
parenta04cc6b3cef56ab3e8414ab1c7d4152c49be97be (diff)
STR 2406: Fl_Widget::measure_label made const
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Widget.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H
index 510b4c2a0..39ecf9de2 100644
--- a/FL/Fl_Widget.H
+++ b/FL/Fl_Widget.H
@@ -918,7 +918,7 @@ public:
/** 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.