Only highlight labels when there are labels.
This commit is contained in:
parent
edfd833424
commit
ade8febfb2
1 changed files with 7 additions and 7 deletions
|
|
@ -3339,7 +3339,9 @@ static void mainloop(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( texttool_len > 0)
|
if (are_labels())
|
||||||
|
{
|
||||||
|
if( texttool_len > 0)
|
||||||
{
|
{
|
||||||
rec_undo_buffer();
|
rec_undo_buffer();
|
||||||
do_render_cur_text(1);
|
do_render_cur_text(1);
|
||||||
|
|
@ -3347,20 +3349,18 @@ static void mainloop(void)
|
||||||
cursor_textwidth = 0;
|
cursor_textwidth = 0;
|
||||||
label_node_to_edit = NULL;
|
label_node_to_edit = NULL;
|
||||||
}
|
}
|
||||||
else if (label_node_to_edit)
|
else if (label_node_to_edit)
|
||||||
{
|
{
|
||||||
rec_undo_buffer();
|
rec_undo_buffer();
|
||||||
have_to_rec_label_node = TRUE;
|
have_to_rec_label_node = TRUE;
|
||||||
add_label_node(0, 0, 0, 0, &label_node_to_edit, NULL);
|
add_label_node(0, 0, 0, 0, &label_node_to_edit, NULL);
|
||||||
label_node_to_edit = NULL;
|
label_node_to_edit = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (are_labels())
|
|
||||||
{
|
|
||||||
cur_label = LABEL_SELECT;
|
cur_label = LABEL_SELECT;
|
||||||
highlight_label_nodes();
|
highlight_label_nodes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
toolopt_changed = 1;
|
toolopt_changed = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue