[gimp] Bug 760306 - "Image header corrupt" error on start-up



commit 3e18b3bbfb2cea3711993027ac814af1d625fe28
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jan 8 13:55:59 2016 +0100

    Bug 760306 - "Image header corrupt" error on start-up
    
    gimp_plug_in_procedure_set_icon(): look at the passed icon_type,
    not proc->icon_type. Introduced this when splitting the function
    into set_icon() and take_icon() in d5255dc.

 app/plug-in/gimppluginprocedure.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/plug-in/gimppluginprocedure.c b/app/plug-in/gimppluginprocedure.c
index aed9172..52829d3 100644
--- a/app/plug-in/gimppluginprocedure.c
+++ b/app/plug-in/gimppluginprocedure.c
@@ -779,7 +779,7 @@ gimp_plug_in_procedure_set_icon (GimpPlugInProcedure *proc,
 
   g_return_if_fail (GIMP_IS_PLUG_IN_PROCEDURE (proc));
 
-  switch (proc->icon_type)
+  switch (icon_type)
     {
     case GIMP_ICON_TYPE_ICON_NAME:
       data_copy = (guint8 *) g_strdup ((gchar *) icon_data);
@@ -850,7 +850,7 @@ gimp_plug_in_procedure_take_icon (GimpPlugInProcedure *proc,
 
   if (! icon_pixbuf && error)
     {
-      g_printerr ("%s\n", error->message);
+      g_printerr ("gimp_plug_in_procedure_take_icon: %s\n", error->message);
       g_clear_error (&error);
     }
 


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