Fix for NULL pointer dereference by Steinar (sesse)

Modified Files:
 	ChangeLog app/transform_core.c
This commit is contained in:
Seth Burgess 2000-01-22 03:01:46 +00:00
parent 32ab81a8a0
commit cf7cf417e2
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Sat Jan 21 21:00:00 CST 2000 Seth Burgess <sjburges@gimp.org>
* app/transform_core.c: applied Steinar's
<sgunderson@bigfoot.com> fix for a NULL pointer
dereference in the transform core.
Sat Jan 22 01:47:30 GMT 2000 Nick Lamb <njl195@zepler.org.uk>
* plug-ins/common/tiff.c: Fix bug reported by Marc Lehmann

View File

@ -1581,6 +1581,11 @@ transform_core_paste (GImage *gimage,
{
layer = layer_new_from_tiles (gimage, gimp_drawable_type_with_alpha(drawable), tiles, _("Transformation"),
OPAQUE_OPACITY, NORMAL_MODE);
if (!layer)
{
g_message(_("transform_core_paste: layer_new_frome_tiles() failed"));
return NULL;
}
GIMP_DRAWABLE (layer)->offset_x = tiles->x;
GIMP_DRAWABLE (layer)->offset_y = tiles->y;

View File

@ -1581,6 +1581,11 @@ transform_core_paste (GImage *gimage,
{
layer = layer_new_from_tiles (gimage, gimp_drawable_type_with_alpha(drawable), tiles, _("Transformation"),
OPAQUE_OPACITY, NORMAL_MODE);
if (!layer)
{
g_message(_("transform_core_paste: layer_new_frome_tiles() failed"));
return NULL;
}
GIMP_DRAWABLE (layer)->offset_x = tiles->x;
GIMP_DRAWABLE (layer)->offset_y = tiles->y;