[gimp] Bug 793360 - Error when copy-pasting in place a full layer.



commit da3baa1cabd16cdcb1ed2695dd5013ca1de1a563
Author: Jehan <jehan girinstud io>
Date:   Sat Feb 10 23:46:58 2018 +0100

    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.

 app/core/gimp-edit.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp-edit.c b/app/core/gimp-edit.c
index 5d2fa96..8fcd9ec 100644
--- a/app/core/gimp-edit.c
+++ b/app/core/gimp-edit.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]