summaryrefslogtreecommitdiff
path: root/FL/Fl_Tooltip.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Tooltip.H')
-rw-r--r--FL/Fl_Tooltip.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H
index 33b69cb6a..ef7633c7f 100644
--- a/FL/Fl_Tooltip.H
+++ b/FL/Fl_Tooltip.H
@@ -57,7 +57,7 @@ public:
/** Returns non-zero if tooltips are enabled. */
static int enabled() { return Fl::option(Fl::OPTION_SHOW_TOOLTIPS); }
/** Enables tooltips on all widgets (or disables if <i>b</i> is false). */
- static void enable(int b = 1) { Fl::option(Fl::OPTION_SHOW_TOOLTIPS, b);}
+ static void enable(int b = 1) { Fl::option(Fl::OPTION_SHOW_TOOLTIPS, (b!=0));}
/** Same as enable(0), disables tooltips on all widgets. */
static void disable() { enable(0); }
static void (*enter)(Fl_Widget* w);