diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-20 01:07:16 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-20 01:07:16 +0000 |
| commit | cec43a6cb1d889b16c0b1e872e81c08e71045663 (patch) | |
| tree | 5e339721213a9d4588b111713745fcbb6f68db8c | |
| parent | 2ab7525eb3bc2fc3aae41df8805770fce3d277fd (diff) | |
Don't start widgets offset by 1/2 the spacing value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 7 | ||||
| -rw-r--r-- | src/Fl_Pack.cxx | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,12 @@ CHANGES IN FLTK 1.1.8 + - Fl_Pack incorrectly started widgets at an offset of 1/2 + the spacing value. + - FLUID did not generate correct window class code if + the class name was not a standard FLTK window class. + - FLUID incorrectly included <FL/Fl_classname.H> for + widget classes that were not subclassed from a standard + FLTK widget class. - The demo master test program now supports scheme selection and all demos use it (STR #1459) - fl_arc() and fl_pie() did not draw properly on WIN32 diff --git a/src/Fl_Pack.cxx b/src/Fl_Pack.cxx index e82fd19a1..569e29a83 100644 --- a/src/Fl_Pack.cxx +++ b/src/Fl_Pack.cxx @@ -3,7 +3,7 @@ // // Packing widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2005 by Bill Spitzak and others. +// Copyright 1998-2006 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -47,7 +47,7 @@ void Fl_Pack::draw() { int tw = w()-Fl::box_dw(box()); int th = h()-Fl::box_dh(box()); int rw, rh; - int current_position = (horizontal() ? tx : ty) + spacing_ / 2; + int current_position = horizontal() ? tx : ty; int maximum_position = current_position; uchar d = damage(); Fl_Widget*const* a = array(); |
