Commit 5ac6c41a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

check that the merged layer has image width and height and resize it if

2003-05-26  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c (export_merge): check that the merged layer
	has image width and height and resize it if necessary. Fixes bug
	#113639.
parent 707e5976
2003-05-26 Sven Neumann <sven@gimp.org>
* libgimp/gimpexport.c (export_merge): check that the merged layer
has image width and height and resize it if necessary. Fixes bug
#113639.
2003-05-26 Michael Natterer <mitch@gimp.org>
 
* app/base/tile-manager-private.h: added "gint ref_count" to the
......@@ -92,8 +92,21 @@ export_merge (gint32 image_ID,
return; /* shouldn't happen */
layers = gimp_image_get_layers (image_ID, &nlayers);
}
/* make sure that the merged drawable matches the image size */
if (gimp_drawable_width (merged) != gimp_image_width (image_ID) ||
gimp_drawable_height (merged) != gimp_image_height (image_ID))
{
gint off_x, off_y;
gimp_drawable_offsets (merged, &off_x, &off_y);
gimp_layer_resize (merged,
gimp_image_width (image_ID),
gimp_image_height (image_ID),
off_x, off_y);
}
}
/* remove any remaining (invisible) layers */
for (i = 0; i < nlayers; i++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment