Skip to content

Commit

Permalink
STR #2691: fixed possible invalid text pointer in Text Display
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Sep 27, 2011
1 parent 4a7eb9c commit 6a14cfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fl_Text_Display.cxx
Expand Up @@ -3133,6 +3133,7 @@ void Fl_Text_Display::wrapped_line_counter(Fl_Text_Buffer *buf, int startPos,
break;
}
}
if (b<lineStart) b = lineStart;
if (!foundBreak) { /* no whitespace, just break at margin */
newLineStart = max(p, buf->next_char(lineStart));
const char *s = buf->address(b);
Expand Down

0 comments on commit 6a14cfb

Please sign in to comment.