diff --git a/CHANGES b/CHANGES index 723e329a8..f1be1a54a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.2 + - Fl_Text_Display didn't limit the resize height to 1 + line. - Fl_Scrollbar widgets incorrectly took keyboard focus when clicked on. This caused widgets such as Fl_Text_Display to hide the cursor when you scrolled diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index b030b3ba5..d238c304c 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Text_Display.cxx,v 1.12.2.33 2002/10/23 13:21:14 easysw Exp $" +// "$Id: Fl_Text_Display.cxx,v 1.12.2.34 2002/10/24 17:26:03 easysw Exp $" // // Copyright 2001-2002 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under @@ -377,6 +377,7 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) { /* reallocate and update the line starts array, which may have changed size and / or contents. */ int nvlines = (text_area.h + mMaxsize - 1) / mMaxsize; + if (nvlines < 1) nvlines = 1; if (mNVisibleLines != nvlines) { mNVisibleLines = nvlines; if (mLineStarts) delete[] mLineStarts; @@ -3026,5 +3027,5 @@ int Fl_Text_Display::handle(int event) { // -// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.33 2002/10/23 13:21:14 easysw Exp $". +// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.34 2002/10/24 17:26:03 easysw Exp $". //