diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-09-27 17:10:04 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-09-27 17:10:04 +0000 |
| commit | 6a14cfb34e59a2e44b8ad2f3e2afe7f04d4e792e (patch) | |
| tree | 076253ddac0ea2349a8711802c312dff9f82ed25 /src | |
| parent | 4a7eb9cb0c9653d85af7beae820db398c89bd233 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 829883883..fee914a3e 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -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); |
