app: don't call update_layout() from buffer_changed()

because the layout gets updated anyway when the model changes, and the
buffer is not the model, its changes are applied to the model.
This commit is contained in:
Michael Natterer 2010-02-20 22:48:51 +01:00
parent 6c3e385cac
commit 75f7e25e3a
1 changed files with 1 additions and 2 deletions

View File

@ -1362,6 +1362,7 @@ gimp_text_tool_apply (GimpTextTool *text_tool)
gimp_text_tool_frame_item (text_tool);
gimp_image_flush (image);
gimp_text_tool_update_layout (text_tool);
}
@ -1673,8 +1674,6 @@ gimp_text_tool_buffer_changed (GtkTextBuffer *text_buffer,
{
gimp_text_tool_create_layer (text_tool, NULL);
}
gimp_text_tool_update_layout (text_tool);
}
void