STR #2691: fixed possible invalid text pointer in Text Display
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
4a7eb9cb0c
commit
6a14cfb34e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user