summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Scroll.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Scroll.cxx b/src/Fl_Scroll.cxx
index ae7a76e54..f218915a8 100644
--- a/src/Fl_Scroll.cxx
+++ b/src/Fl_Scroll.cxx
@@ -206,7 +206,7 @@ void Fl_Scroll::recalc_scrollbars(ScrollInfo &si) const {
Fl_Widget*const* a = array();
for (int i=children(); i--;) {
Fl_Widget* o = *a++;
- if ( o==&scrollbar || o==&hscrollbar ) continue;
+ if ( o==&scrollbar || o==&hscrollbar || o->visible()==0 ) continue;
if ( first ) {
first = 0;
si.child.l = o->x();