[gimp/gimp-2-10] Issue #5232 - PSD export issue



commit 505955ba50f19893ea7677b1d08b6bff4ad7089f
Author: Ell <ell_se yahoo com>
Date:   Sun Jun 14 11:23:36 2020 +0300

    Issue #5232 - PSD export issue
    
    In psd-save.c, fix erroneous call to gimp_item_get_image(), which
    was being called with an image-id, instead of a drawable-id,
    potentially causing an error or wrong results if the image-id did
    not correspond to an existing item, or if the corresponding item
    did not belong to the exported image.

 plug-ins/file-psd/psd-save.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/file-psd/psd-save.c b/plug-ins/file-psd/psd-save.c
index c125d86afa..4f2be5d44c 100644
--- a/plug-ins/file-psd/psd-save.c
+++ b/plug-ins/file-psd/psd-save.c
@@ -1829,7 +1829,7 @@ get_pixel_format (gint32 drawableID)
       g_return_val_if_reached (NULL);
     }
 
-  bpc = get_bpc (gimp_item_get_image (image_id));
+  bpc = get_bpc (image_id);
 
   sprintf (format, "%s u%d", model, 8 * bpc);
 


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