app: fix a second switch with missing paste types.

Completing previous commit, the next switch was not raising any error,
but I believe the new "in place" variants of paste as floating selection
also have to be processed for mask removal.
This commit is contained in:
Jehan 2018-02-10 23:57:45 +01:00
parent da3baa1cab
commit a5bc153343
1 changed files with 2 additions and 0 deletions

View File

@ -258,7 +258,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, get rid of the layer mask,
* and make sure the layer has the right format
*/