summaryrefslogtreecommitdiff
path: root/src/Fl_Pack.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Pack.cxx')
-rw-r--r--src/Fl_Pack.cxx7
1 files changed, 4 insertions, 3 deletions
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;