Bugfix from Matthias (thanks Matt)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
4b341bc95a
commit
1f19505573
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Tile.cxx,v 1.5 1999/01/07 19:17:27 mike Exp $"
|
||||
// "$Id: Fl_Tile.cxx,v 1.5.2.1 1999/05/25 05:33:56 bill Exp $"
|
||||
//
|
||||
// Tile widget for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -39,7 +39,7 @@ void Fl_Tile::position(int oix, int oiy, int newx, int newy) {
|
||||
Fl_Widget*const* a = array();
|
||||
short* p = sizes();
|
||||
p += 8; // skip group & resizable's saved size
|
||||
for (int i=children(); i--;) {
|
||||
for (int i=children(); i--; p += 4) {
|
||||
Fl_Widget* o = *a++;
|
||||
if (o == resizable()) continue;
|
||||
int X = o->x();
|
||||
@ -59,7 +59,6 @@ void Fl_Tile::position(int oix, int oiy, int newx, int newy) {
|
||||
if (t == oiy || t>oiy && B<newy || t<oiy && B>newy) B = newy;
|
||||
}
|
||||
o->damage_resize(X,Y,R-X,B-Y);
|
||||
p += 4;
|
||||
}
|
||||
}
|
||||
|
||||
@ -196,5 +195,5 @@ int Fl_Tile::handle(int event) {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Tile.cxx,v 1.5 1999/01/07 19:17:27 mike Exp $".
|
||||
// End of "$Id: Fl_Tile.cxx,v 1.5.2.1 1999/05/25 05:33:56 bill Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user