diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-24 17:26:03 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-24 17:26:03 +0000 |
| commit | 4f75130870e244022275e1913581b52ad9f40227 (patch) | |
| tree | 4c376e3f17330b7dfbc780a841b865733ef301a7 /src | |
| parent | 3d2f4492ea93152725ca6f7d474bb45c292d1478 (diff) | |
Limit resizes to 1 line minimum.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 $". // |
