Fixing a bug that caused the deletion of a label when a)writing the label b) draw things that caused that cur_undo matched newly label->save_undoid after cycling around NUM_UNDO_BUFS c)click on undo.
This commit is contained in:
parent
79d049e7dd
commit
f5e4e4eb0f
1 changed files with 5 additions and 1 deletions
|
|
@ -18304,7 +18304,11 @@ void rec_undo_label(void)
|
||||||
have_to_rec_label_node = FALSE;
|
have_to_rec_label_node = FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
text_undo[cur_undo] = 0;
|
text_undo[cur_undo] = 0;
|
||||||
|
if (current_label_node != NULL && current_label_node->save_undoid == (cur_undo + 1) % NUM_UNDO_BUFS)
|
||||||
|
current_label_node->save_undoid = 255;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void do_undo_label_node()
|
void do_undo_label_node()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue