mirror of https://github.com/GNOME/gimp.git
removed if(image) checks where the image can't be NULL.
2005-07-09 Michael Natterer <mitch@gimp.org> * app/core/gimplayer.c: removed if(image) checks where the image can't be NULL.
This commit is contained in:
parent
841144efbd
commit
9b9052b866
|
@ -1,3 +1,8 @@
|
|||
2005-07-09 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimplayer.c: removed if(image) checks where the image
|
||||
can't be NULL.
|
||||
|
||||
2005-07-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/pixel-surround.[ch]: formatting.
|
||||
|
|
|
@ -1683,8 +1683,7 @@ gimp_layer_set_opacity (GimpLayer *layer,
|
|||
{
|
||||
GimpImage *gimage = gimp_item_get_image (GIMP_ITEM (layer));
|
||||
|
||||
if (gimage)
|
||||
gimp_image_undo_push_layer_opacity (gimage, NULL, layer);
|
||||
gimp_image_undo_push_layer_opacity (gimage, NULL, layer);
|
||||
}
|
||||
|
||||
layer->opacity = opacity;
|
||||
|
@ -1719,8 +1718,7 @@ gimp_layer_set_mode (GimpLayer *layer,
|
|||
{
|
||||
GimpImage *gimage = gimp_item_get_image (GIMP_ITEM (layer));
|
||||
|
||||
if (gimage)
|
||||
gimp_image_undo_push_layer_mode (gimage, NULL, layer);
|
||||
gimp_image_undo_push_layer_mode (gimage, NULL, layer);
|
||||
}
|
||||
|
||||
layer->mode = mode;
|
||||
|
@ -1755,8 +1753,7 @@ gimp_layer_set_preserve_trans (GimpLayer *layer,
|
|||
{
|
||||
GimpImage *gimage = gimp_item_get_image (GIMP_ITEM (layer));
|
||||
|
||||
if (gimage)
|
||||
gimp_image_undo_push_layer_preserve_trans (gimage, NULL, layer);
|
||||
gimp_image_undo_push_layer_preserve_trans (gimage, NULL, layer);
|
||||
}
|
||||
|
||||
layer->preserve_trans = preserve ? TRUE : FALSE;
|
||||
|
|
Loading…
Reference in New Issue