[gimp] app: don't leave drawing blocked in the error case



commit 076948b4b741a32cc8f330513c68b3b785315e47
Author: Michael Natterer <mitch gimp org>
Date:   Fri Mar 5 10:50:50 2010 +0100

    app: don't leave drawing blocked in the error case

 app/tools/gimptexttool.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index e68cc93..3c4a4ca 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1317,7 +1317,10 @@ gimp_text_tool_create_layer (GimpTextTool *text_tool,
   g_object_unref (text);
 
   if (! layer)
-    return;
+    {
+      gimp_text_tool_unblock_drawing (text_tool);
+      return;
+    }
 
   gimp_text_tool_connect (text_tool, GIMP_TEXT_LAYER (layer), text);
 



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