mirror of https://github.com/GNOME/gimp.git
Bug 793360 - Error when copy-pasting in place a full layer.
In a switch(), not all paste type were listed (the new "In Place" versions in particular were missing), therefore we were hitting a g_return_val_if_reached() error.
This commit is contained in:
parent
d0ae244fe8
commit
da3baa1cab
|
@ -233,7 +233,9 @@ gimp_edit_paste_get_layer (GimpImage *image,
|
|||
switch (*paste_type)
|
||||
{
|
||||
case GIMP_PASTE_TYPE_FLOATING:
|
||||
case GIMP_PASTE_TYPE_FLOATING_IN_PLACE:
|
||||
case GIMP_PASTE_TYPE_FLOATING_INTO:
|
||||
case GIMP_PASTE_TYPE_FLOATING_INTO_IN_PLACE:
|
||||
/* when pasting as floating selection, force creation of a
|
||||
* plain layer, so gimp_item_convert() will collapse a
|
||||
* group layer
|
||||
|
@ -242,6 +244,7 @@ gimp_edit_paste_get_layer (GimpImage *image,
|
|||
break;
|
||||
|
||||
case GIMP_PASTE_TYPE_NEW_LAYER:
|
||||
case GIMP_PASTE_TYPE_NEW_LAYER_IN_PLACE:
|
||||
layer_type = G_TYPE_FROM_INSTANCE (layer);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue