Commit 9b9052b8 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

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.
parent 841144ef
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;
......
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