From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_Pack.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Fl_Pack.cxx') diff --git a/src/Fl_Pack.cxx b/src/Fl_Pack.cxx index f28218c20..26e4f3ecb 100644 --- a/src/Fl_Pack.cxx +++ b/src/Fl_Pack.cxx @@ -75,11 +75,12 @@ void Fl_Pack::draw() { int maximum_position = current_position; uchar d = damage(); Fl_Widget*const* a = array(); + int i; if (horizontal()) { rw = -spacing_; rh = th; - for (int i = children(); i--;) + for (i = children(); i--;) if (child(i)->visible()) { if (child(i) != this->resizable()) rw += child(i)->w(); rw += spacing_; @@ -88,13 +89,13 @@ void Fl_Pack::draw() { rw = tw; rh = -spacing_; - for (int i = children(); i--;) + for (i = children(); i--;) if (child(i)->visible()) { if (child(i) != this->resizable()) rh += child(i)->h(); rh += spacing_; } } - for (int i = children(); i--;) { + for (i = children(); i--;) { Fl_Widget* o = *a++; if (o->visible()) { int X,Y,W,H; -- cgit v1.2.3