[gimp/gimp-2-10] plug-ins: Fix previous cherry picked commit.



commit 48fa390e3f4d129ce9c94343803684d1b6e88d4e
Author: Jacob Boerema <jgboerema gmail com>
Date:   Wed Dec 1 21:56:15 2021 -0500

    plug-ins: Fix previous cherry picked commit.
    
    In 2.10 we need to use id's.

 plug-ins/file-dds/ddsread.c  | 2 +-
 plug-ins/file-dds/ddswrite.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-dds/ddsread.c b/plug-ins/file-dds/ddsread.c
index beee6814f7..a8eb8b8ad9 100644
--- a/plug-ins/file-dds/ddsread.c
+++ b/plug-ins/file-dds/ddsread.c
@@ -976,7 +976,7 @@ load_layer (FILE            *fp,
   gimp_image_insert_layer (image, layer, 0, *l);
 
   if (type == GIMP_INDEXED_IMAGE || type == GIMP_INDEXEDA_IMAGE)
-    bablfmt = gimp_drawable_get_format (GIMP_DRAWABLE (layer));
+    bablfmt = gimp_drawable_get_format (layer);
 
   if ((*l)++) gimp_item_set_visible (layer, FALSE);
 
diff --git a/plug-ins/file-dds/ddswrite.c b/plug-ins/file-dds/ddswrite.c
index 6631970dc8..a3215ed3b0 100644
--- a/plug-ins/file-dds/ddswrite.c
+++ b/plug-ins/file-dds/ddswrite.c
@@ -888,7 +888,7 @@ write_layer (FILE   *fp,
   src = g_malloc (w * h * bpp);
 
   if (basetype == GIMP_INDEXED)
-    format = gimp_drawable_get_format (drawable);
+    format = gimp_drawable_get_format (drawable_id);
   else if (bpp == 1)
     format = babl_format ("Y' u8");
   else if (bpp == 2)


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