Author: matt
Date: 2011-09-27 10:00:35 -0700 (Tue, 27 Sep 2011)
New Revision: 9064
Log:
STR 2683: calling show_cursor() before a text buffer is assigned to an
Fl_Text_Diisplay deos not crash any longer.
Modified:
branches/branch-1.3/documentation/Doxyfile
branches/branch-1.3/src/Fl_Text_Display.cxx
Modified: branches/branch-1.3/documentation/Doxyfile
===================================================================
--- branches/branch-1.3/documentation/Doxyfile 2011-09-26 20:43:49 UTC (rev
9063)
+++ branches/branch-1.3/documentation/Doxyfile 2011-09-27 17:00:35 UTC (rev
9064)
@@ -1282,7 +1282,7 @@
# When a file name is specified after GENERATE_TAGFILE, doxygen will create
# a tag file that is based on the input files it reads.
-GENERATE_TAGFILE =
+GENERATE_TAGFILE = fltk.tags
# If the ALLEXTERNALS tag is set to YES all external classes will be listed
# in the class index. If set to NO only the inherited external classes
Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2011-09-26 20:43:49 UTC (rev
9063)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2011-09-27 17:00:35 UTC (rev
9064)
@@ -606,6 +606,7 @@
*/
void Fl_Text_Display::show_cursor(int b) {
mCursorOn = b;
+ if (!buffer()) return;
redisplay_range(buffer()->prev_char_clipped(mCursorPos),
buffer()->next_char(mCursorPos));
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit