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:
Pere Pujal i Carabantes 2009-11-09 21:51:45 +00:00
parent 79d049e7dd
commit f5e4e4eb0f

View file

@ -18304,7 +18304,11 @@ void rec_undo_label(void)
have_to_rec_label_node = FALSE;
}
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()