Commit af2cb761 authored by Michael Natterer's avatar Michael Natterer 😴

Bug 792744 - Gimp crashes attempting to merge down a hidden layer

gimp_image_merge_down(): return an error if the current layer is not
parent b9577a78
......@@ -246,6 +246,13 @@ gimp_image_merge_down (GimpImage *image,
return NULL;
if (! gimp_item_get_visible (GIMP_ITEM (current_layer)))
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot merge down an invisible layer."));
return NULL;
for (list = gimp_item_get_container_iter (GIMP_ITEM (current_layer));
list = g_list_next (list))
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