[gimp] app: fix crash introduced by layout offset refactoring



commit 98a2b0210f9fdf4acb5c5632e0607ee978e5a869
Author: Michael Natterer <mitch gimp org>
Date:   Sun Mar 7 17:34:49 2010 +0100

    app: fix crash introduced by layout offset refactoring
    
    Need to call gimp_text_tool_ensure_layou() in gimp_text_tool_draw()
    explicitely now, because we don't redundantly call the
    get_cursor_rect() function any more when there is a selection.

 app/tools/gimptexttool.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 5ce1924..0069f8c 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -789,6 +789,8 @@ gimp_text_tool_draw (GimpDrawTool *draw_tool)
       ! text_tool->layer->text)
     return;
 
+  gimp_text_tool_ensure_layout (text_tool);
+
   if (gtk_text_buffer_get_has_selection (GTK_TEXT_BUFFER (text_tool->buffer)))
     {
       /* If the text buffer has a selection, highlight the selected letters */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]