The crash happened because have_to_rec_label_node was not set to NULL when start new drawing, now is yet corrected.
This commit is contained in:
parent
958e54de8f
commit
e545f8bc87
1 changed files with 1 additions and 7 deletions
|
|
@ -11952,7 +11952,6 @@ static int do_save(int tool, int dont_show_success_results)
|
||||||
fprintf(fi, "\n\n");
|
fprintf(fi, "\n\n");
|
||||||
}
|
}
|
||||||
current_node = current_node->next_to_up_label_node;
|
current_node = current_node->next_to_up_label_node;
|
||||||
printf("cur %p, red %p\n",current_node, first_label_node_in_redo_stack); //FIXAM
|
|
||||||
}
|
}
|
||||||
fclose(fi);
|
fclose(fi);
|
||||||
free(fname);
|
free(fname);
|
||||||
|
|
@ -18481,11 +18480,7 @@ static void rec_undo_label(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Bill added the "current_label_node != NULL" test to avoid
|
// FIXME:
|
||||||
// crashing in the following situation: (1) use label tool, (2) start new
|
|
||||||
// drawing, (3) change to paint tool & try to draw. Is this test correct,
|
|
||||||
// or is the crash here an artifact of a different bug? -bjk 2009.10.05
|
|
||||||
//
|
|
||||||
// It's all wrong to have a separate undo stack anyway. We need a way
|
// It's all wrong to have a separate undo stack anyway. We need a way
|
||||||
// for arbitrary code to supply callback functions and parameters when
|
// for arbitrary code to supply callback functions and parameters when
|
||||||
// creating an undo entry. One obvious function is a destructor for the
|
// creating an undo entry. One obvious function is a destructor for the
|
||||||
|
|
@ -18685,7 +18680,6 @@ static void delete_label_list(struct label_node** ref_head)
|
||||||
|
|
||||||
while(current != NULL)
|
while(current != NULL)
|
||||||
{
|
{
|
||||||
printf("%p current\n", current); //FIXAM
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
next = current->next_to_up_label_node;
|
next = current->next_to_up_label_node;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue