summaryrefslogtreecommitdiff
path: root/src/Fl_Browser_.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-05-01 15:08:22 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-05-01 15:08:22 +0000
commit2f942e1c4a049cc64aa1ddd49dd87f0f011c8b37 (patch)
treec7906d426847a6d364dc9d20f0d81c3571563fc9 /src/Fl_Browser_.cxx
parent5c3e88c386ff80b96688b45c2806524273109b5b (diff)
Updated version numbers to 1.0.3.
Fixed browser bug in item_width() - would read past the end of the string under certain circumstances. Fixed browser resize bug - wasn't updating bounding box during check, so it could get in an infinite loop. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Browser_.cxx')
-rw-r--r--src/Fl_Browser_.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx
index a2debaa2d..8558eebda 100644
--- a/src/Fl_Browser_.cxx
+++ b/src/Fl_Browser_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Browser_.cxx,v 1.10 1999/03/09 06:46:36 bill Exp $"
+// "$Id: Fl_Browser_.cxx,v 1.10.2.1 1999/05/01 15:08:22 mike Exp $"
//
// Base Browser widget class for the Fast Light Tool Kit (FLTK).
//
@@ -28,6 +28,7 @@
#include <FL/Fl_Browser_.H>
#include <FL/fl_draw.H>
+
// This is the base class for browsers. To be useful it must be
// subclassed and several virtual functions defined. The
// Forms-compatable browser and the file chooser's browser are
@@ -238,7 +239,11 @@ J1:
// see if scrollbar needs to be switched on/off:
if ((has_scrollbar_ & VERTICAL) && (
(has_scrollbar_ & ALWAYS_ON) || position_ || full_height_ > H)) {
- if (!scrollbar.visible()) {scrollbar.set_visible(); drawsquare = 1;}
+ if (!scrollbar.visible()) {
+ scrollbar.set_visible();
+ drawsquare = 1;
+ bbox(X, Y, W, H);
+ }
} else {
top_ = item_first(); real_position_ = offset_ = 0;
if (scrollbar.visible()) {
@@ -249,7 +254,11 @@ J1:
if ((has_scrollbar_ & HORIZONTAL) && (
(has_scrollbar_ & ALWAYS_ON) || hposition_ || full_width_ > W)) {
- if (!hscrollbar.visible()) {hscrollbar.set_visible(); drawsquare = 1;}
+ if (!hscrollbar.visible()) {
+ hscrollbar.set_visible();
+ drawsquare = 1;
+ bbox(X, Y, W, H);
+ }
} else {
real_hposition_ = 0;
if (hscrollbar.visible()) {
@@ -634,5 +643,5 @@ void Fl_Browser_::item_select(void*, int) {}
int Fl_Browser_::item_selected(void* l) const {return l==selection_;}
//
-// End of "$Id: Fl_Browser_.cxx,v 1.10 1999/03/09 06:46:36 bill Exp $".
+// End of "$Id: Fl_Browser_.cxx,v 1.10.2.1 1999/05/01 15:08:22 mike Exp $".
//