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_Tabs.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/Fl_Tabs.cxx') diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 7d48d78d1..96ad87f90 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -260,7 +260,8 @@ int Fl_Tabs::tab_height() { int H = h(); int H2 = y(); Fl_Widget*const* a = array(); - for (int i=children(); i--;) { + int i; + for (i =children(); i--;) { Fl_Widget* o = *a++; if (o->y() < y()+H) H = o->y()-y(); if (o->y()+o->h() > H2) H2 = o->y()+o->h(); @@ -292,7 +293,8 @@ Fl_Widget *Fl_Tabs::which(int event_x, int event_y) { Fl_Widget *ret = 0L; const int nc = children(); tab_positions(); - for (int i=0; ihide(); else if (o->visible()) v = o; @@ -746,7 +750,8 @@ int Fl_Tabs::value(Fl_Widget *newvalue) { Fl_Widget*const* a = array(); int ret = 0; int selected = -1; - for (int i=children(); i--;) { + int i; + for (i =children(); i--;) { Fl_Widget* o = *a++; if (o == newvalue) { if (!o->visible()) ret = 1; -- cgit v1.2.3