This check is no more needed here.

This commit is contained in:
Pere Pujal i Carabantes 2010-02-02 21:02:44 +00:00
parent e545f8bc87
commit 5e18e2380e

View file

@ -18299,7 +18299,6 @@ static void add_label_node(int w, int h, Uint16 x, Uint16 y, struct label_node**
if (label_node_to_edit)
{
new_node->disables = label_node_to_edit;
//label_node_to_edit = NULL;
}
else
new_node->disables = NULL;
@ -18358,8 +18357,6 @@ static struct label_node* search_label_list(struct label_node** ref_head, Uint16
if(y <= (current_node->save_y)+(current_node->save_height))
{
if (current_node->is_enabled == TRUE)
{
if (tmp_node == NULL) /* Selecting the top label at x,y position*/
{
if (hover == 1)
return(current_node);
@ -18370,7 +18367,6 @@ static struct label_node* search_label_list(struct label_node** ref_head, Uint16
}
}
}
}
current_node = current_node->next_to_down_label_node;
if (current_node == NULL)
current_node = current_label_node;
@ -18467,7 +18463,6 @@ static struct label_node* search_label_list(struct label_node** ref_head, Uint16
static void rec_undo_label(void)
{
printf("rec\n");
if (first_label_node_in_redo_stack != NULL)
{
delete_label_list(&first_label_node_in_redo_stack);