Author: matt
Date: 2011-09-27 10:10:04 -0700 (Tue, 27 Sep 2011)
New Revision: 9065
Log:
STR #2691: fixed possible invalid text pointer in Text Display
Modified:
branches/branch-1.3/src/Fl_Text_Display.cxx
Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2011-09-27 17:00:35 UTC (rev
9064)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2011-09-27 17:10:04 UTC (rev
9065)
@@ -3133,6 +3133,7 @@
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);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit