mirror of
https://github.com/fltk/fltk.git
synced 2026-06-08 10:00:38 +08:00
STR 2683: calling show_cursor() before a text buffer is assigned to an Fl_Text_Diisplay deos not crash any longer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1282,7 +1282,7 @@ TAGFILES =
|
||||
# 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
|
||||
|
||||
@@ -606,6 +606,7 @@ void Fl_Text_Display::insert_position( int newPos ) {
|
||||
*/
|
||||
void Fl_Text_Display::show_cursor(int b) {
|
||||
mCursorOn = b;
|
||||
if (!buffer()) return;
|
||||
redisplay_range(buffer()->prev_char_clipped(mCursorPos), buffer()->next_char(mCursorPos));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user