Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorperepujal <perepujal>2010-01-27 14:15:38 (GMT)
committer perepujal <perepujal>2010-01-27 14:15:38 (GMT)
commitd285b04138ca0c3a6ed8b0f3f86a976be2255d8e (patch)
tree74d3b05a679a0e9412c512bf3891842d9fa6af21 /src
parent2d5a1b429ad66b25f317408b7ecd5e466c41b683 (diff)
Only highlight labels when there are labels.
Diffstat (limited to 'src')
-rw-r--r--src/tuxpaint.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tuxpaint.c b/src/tuxpaint.c
index 01eea7e..605aaa0 100644
--- a/src/tuxpaint.c
+++ b/src/tuxpaint.c
@@ -3339,7 +3339,9 @@ static void mainloop(void)
}
else
{
- if( texttool_len > 0)
+ if (are_labels())
+ {
+ if( texttool_len > 0)
{
rec_undo_buffer();
do_render_cur_text(1);
@@ -3347,20 +3349,18 @@ static void mainloop(void)
cursor_textwidth = 0;
label_node_to_edit = NULL;
}
- else if (label_node_to_edit)
- {
+ else if (label_node_to_edit)
+ {
rec_undo_buffer();
have_to_rec_label_node = TRUE;
add_label_node(0, 0, 0, 0, &label_node_to_edit, NULL);
label_node_to_edit = NULL;
- }
+ }
- if (are_labels())
- {
cur_label = LABEL_SELECT;
highlight_label_nodes();
- }
+ }
}
toolopt_changed = 1;
}