Drag and drop from layer mask should not create new layer
Submitted by Raphaël Quinet
Description
Using drag and drop from a layer mask produces a different result than if you use copy and paste (Ctrl-C, Ctrl-V, Ctrl-H).
Scenario:
- You have two images open and the current layer in each image has a layer mask.
- You drag the layer mask from the first image (by dragging it from the Layers dialog) and drop it on the second image.
Current behavior:
- A new layer is created in the second image, containing the (grayscale) contents of the layer mask.
Expected behavior:
- The contents of the layer mask are copied into the layer mask of the second image. This is what would happen if you do Edit->Copy (Ctrl-C) from the first image and then Edit->Paste (Ctrl-V) and then (Ctrl-H) on the second image (assuming that the layer mask is currently active in the second image).
Creating a new layer in the second image may be a reasonable behavior if the second image has no layer mask or no alpha channel associated with the current layer, but not if there is already a layer mask and especially not if that mask is currently active.
Version: 1.x