mirror of https://github.com/GNOME/gimp.git
Fix for NULL pointer dereference by Steinar (sesse)
Modified Files: ChangeLog app/transform_core.c
This commit is contained in:
parent
32ab81a8a0
commit
cf7cf417e2
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue