gimp r27819 - in trunk: . app/tools



Author: neo
Date: Sun Dec 21 15:49:12 2008
New Revision: 27819
URL: http://svn.gnome.org/viewvc/gimp?rev=27819&view=rev

Log:
2008-12-21  Sven Neumann  <sven gimp org>

	Bug 564869 â GIMP crashes on selecting Tools->GEGL operation

	* app/tools/gimptool.c (gimp_tool_initialize): check if the tool
	has set an error.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimptool.c

Modified: trunk/app/tools/gimptool.c
==============================================================================
--- trunk/app/tools/gimptool.c	(original)
+++ trunk/app/tools/gimptool.c	Sun Dec 21 15:49:12 2008
@@ -446,8 +446,12 @@
 
   if (! GIMP_TOOL_GET_CLASS (tool)->initialize (tool, display, &error))
     {
-      gimp_tool_message_literal (tool, display, error->message);
-      g_clear_error (&error);
+      if (error)
+        {
+          gimp_tool_message_literal (tool, display, error->message);
+          g_clear_error (&error);
+        }
+
       return FALSE;
     }
 



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