From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/forms_compatibility.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/forms_compatibility.cxx') diff --git a/src/forms_compatibility.cxx b/src/forms_compatibility.cxx index c4901fedc..8c42efdc7 100644 --- a/src/forms_compatibility.cxx +++ b/src/forms_compatibility.cxx @@ -28,6 +28,7 @@ void fl_end_form() { void Fl_Group::forms_end() { // set the dimensions of a group to surround contents const int nc = children(); + int i; if (nc && !w()) { Fl_Widget*const* a = array(); Fl_Widget* o = *a++; @@ -35,7 +36,7 @@ void Fl_Group::forms_end() { int ry = o->y(); int rw = rx+o->w(); int rh = ry+o->h(); - for (int i = nc - 1; i--;) { + for (i = nc - 1; i--;) { o = *a++; if (o->x() < rx) rx = o->x(); if (o->y() < ry) ry = o->y(); @@ -52,7 +53,7 @@ void Fl_Group::forms_end() { Fl_Widget* o = as_window() ? this : window(); int Y = o->h(); Fl_Widget*const* a = array(); - for (int i = nc; i--;) { + for (i = nc; i--;) { Fl_Widget* ow = *a++; int newy = Y - ow->y() - ow->h(); ow->y(newy); -- cgit v1.2.3