summaryrefslogtreecommitdiff
path: root/src/Fl_Tooltip.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Tooltip.cxx')
-rw-r--r--src/Fl_Tooltip.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx
index cb85f520e..43ff1ea0f 100644
--- a/src/Fl_Tooltip.cxx
+++ b/src/Fl_Tooltip.cxx
@@ -101,7 +101,8 @@ void Fl_TooltipBox::layout() {
oy = Fl::event_y_root()+13;
} else {
oy = currentTooltipY + currentTooltipH+2;
- for (Fl_Widget* p = Fl_Tooltip::current(); p; p = p->window()) {
+ Fl_Widget *p;
+ for (p = Fl_Tooltip::current(); p; p = p->window()) {
oy += p->y();
}
}