https://bugs.kde.org/show_bug.cgi?id=502914

--- Comment #4 from Jonas <jonas.pe...@aon.at> ---
I dug into the source and tracked down what is happening exactly: The default
layer has a default pixel with 100% opaque. When copying the full layer, this
default pixel is not cleared.

Specifically, here is the check whether a transparent default pixel is required
on the copied, trimmed layers:
https://github.com/KDE/krita/blob/8345697b0eedfbc1c38617c7344124e0b61557ea/libs/ui/actions/kis_selection_action_factories.cpp#L90

I personally don't think it's expected to copy the default pixel at all when a
selection is active, especially when pasting into another document where there
is already a background layer.

So basically simplifying it down to
`const bool needsTransparentPixel = selection &&
hasNonTransparentDefaultPixel;`
such that it only keeps the default pixel when no selection is active (and thus
the layer itself is meant to be copied)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to