summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Tooltip.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx
index 20693c1a3..f69c33f92 100644
--- a/src/Fl_Tooltip.cxx
+++ b/src/Fl_Tooltip.cxx
@@ -59,7 +59,9 @@ public:
void layout();
/** Shows the tooltip windows only if a tooltip text is available. */
void show() {
- if (tip) Fl_Menu_Window::show();
+ if (!tip) return;
+
+ Fl_Menu_Window::show();
}
};
@@ -154,7 +156,7 @@ static void tooltip_timeout(void*) {
}
/**
- This method is called when the mouse pointer enters a widget.
+ This method is called when the mouse pointer enters a widget.
<P>If this widget or one of its parents has a tooltip, enter it. This
will do nothing if this is the current widget (even if the mouse moved
out so an exit() was done and then moved back in). If no tooltip can