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:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user