1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

Issue #12883: fix incompatible pointer type.

The GimpLayer is a GimpDrawable. Cast it properly for strict compilers.
This commit is contained in:
Jehan
2025-02-09 19:41:56 +01:00
parent b01ecf80e6
commit bffe766fc3

View File

@@ -2478,7 +2478,7 @@ load_sketchbook_layers (TIFF *tif,
* offset. Since the layer width can also shrink due to the
* crop, we calculate the before and after difference and
* adjust the x offset too. */
(void) gimp_image_autocrop (image, layer);
(void) gimp_image_autocrop (image, GIMP_DRAWABLE (layer));
x_pos += (layer_width - gimp_drawable_get_width (GIMP_DRAWABLE (layer)));