diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-06 14:04:53 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-06 14:04:53 +0000 |
| commit | a4cd699340c05a2c9525c1c5deadeee4d786ef24 (patch) | |
| tree | b6f8ade11e5a46e4b15b017d6f8539c888b577bb /src/Fl_Text_Display.cxx | |
| parent | 9c4a8a4ed24667a0d12bc06cc89a777a449d763f (diff) | |
Fl_Text_Display::draw_vline() needed to check nVisLine >= num lines.
Fl_Menu_::remove() added 1 to the size() value, but it didn't need to.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 6548c1787..7a493dda9 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.15 2002/05/24 14:19:19 easysw Exp $" +// "$Id: Fl_Text_Display.cxx,v 1.12.2.16 2002/06/06 14:04:53 easysw Exp $" // // Copyright 2001-2002 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under @@ -888,7 +888,7 @@ void Fl_Text_Display::draw_vline(int visLineNum, int leftClip, int rightClip, const char *lineStr; /* If line is not displayed, skip it */ - if ( visLineNum < 0 || visLineNum > mNVisibleLines ) + if ( visLineNum < 0 || visLineNum >= mNVisibleLines ) return; /* Calculate Y coordinate of the string to draw */ @@ -1948,5 +1948,5 @@ int Fl_Text_Display::handle(int event) { // -// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.15 2002/05/24 14:19:19 easysw Exp $". +// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.16 2002/06/06 14:04:53 easysw Exp $". // |
