Skip to content

Commit

Permalink
Minimal code edit, no functional change.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Albrecht Schlosser committed Mar 30, 2018
1 parent 59af656 commit 69584dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Fl_Group.cxx
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 69584dd

Please sign in to comment.