From 69584dda96eeae60dbb4fe70a1b452e0effce224 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 30 Mar 2018 10:11:24 +0000 Subject: Minimal code edit, no functional change. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Group.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index 8392f8bf4..a47eddaf9 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -3,7 +3,7 @@ // // Group widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2017 by Bill Spitzak and others. +// Copyright 1998-2018 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -763,11 +763,11 @@ void Fl_Group::resize(int X, int Y, int W, int H) { if (L >= RR) L += dw; else if (L > RL) L += dw * (L-RL) / (RR-RL); if (R >= RR) R += dw; - else if (R > RL) R = R + dw * (R-RL) / (RR-RL); + else if (R > RL) R += dw * (R-RL) / (RR-RL); if (T >= RB) T += dh; - else if (T > RT) T = T + dh * (T-RT) / (RB-RT); + else if (T > RT) T += dh * (T-RT) / (RB-RT); if (B >= RB) B += dh; - else if (B > RT) B = B + dh * (B-RT) / (RB-RT); + else if (B > RT) B += dh * (B-RT) / (RB-RT); #endif // old / new (1.4.0++) widget resizing code -- cgit v1.2.3