Summary: | Copy and pasting a selection twice in a row produces a blank layer. | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Autumn Lansing <autumn> |
Component: | * Unknown | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dimula73, halla |
Priority: | NOR | Keywords: | triaged |
Version: | 5.1.0 | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/9ed1797d99fafe31731ec80b1cc085b5cb4540a8 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Video of bug
Krita file used in video |
Description
Autumn Lansing
2022-09-05 22:39:46 UTC
I'm sorry, but I cannot reproduce this with the 5.1.0 appimage or with a build from current git master. It happens continuously for me. It also happens when I move the copied material. The selection box moves with the new layer and still surrounds the newly-copied material, but Ctrl C and Ctrl V to copy what's on Layer 2 produces a new blank Layer 3. 1. Select and area in Layer 1 2. Ctrl C to copy then Ctrl V to paste, which creates Layer 2 3. Move the newly-copied material on Layer 2 to a different position. The selection box will follow it. 4. Ctrl C and then Ctrl V to create Layer 3. Layer 3 will be blank. On the Layers docker, there is a visible difference in the shape of the layer icon for Layer 3. For example, in what I just did to test this, Layer 1 and Layer 2 icons are square, but the Layer 3 icon is a narrow, upright rectangle. Hovering over the icons, Layer 1 and Layer 2 show previews of what's on the layer, but Layer 3 shows a blank layer. Hi, Autumn! Could you please make a video of the problem? And, probably, attach a test file. I cannot reproduce this problem, neither on Windows, nor on Linux. Created attachment 152127 [details]
Video of bug
Here's a video of the bug in action.
Created attachment 152128 [details]
Krita file used in video
And here's the document from that video.
Thanks for your comment! Automatically switching the status of this bug to REPORTED so that the KDE team knows that the bug is ready to get confirmed. In the future you may also do this yourself when providing needed information. Okay, I see what the problem is. The Move Tool action is not finished by the time Ctrl+C is pressed. As a temporary workaround, please just press Enter key after doing the move and pressing Ctrl+C. And I will look for a proper solution in code. Git commit b0022ad9b5d71b6a6fdca8fa87c1cdd90a8a9e20 by Dmitry Kazakov. Committed on 19/09/2022 at 13:43. Pushed by dkazakov into branch 'master'. Fix copy-paste operation not working after using the move tool The copying should force-finish the move operation M +2 -0 libs/ui/actions/kis_selection_action_factories.cpp https://invent.kde.org/graphics/krita/commit/b0022ad9b5d71b6a6fdca8fa87c1cdd90a8a9e20 Git commit 9ed1797d99fafe31731ec80b1cc085b5cb4540a8 by Dmitry Kazakov. Committed on 19/09/2022 at 13:43. Pushed by dkazakov into branch 'krita/5.1'. Fix copy-paste operation not working after using the move tool The copying should force-finish the move operation (cherry picked from commit b0022ad9b5d71b6a6fdca8fa87c1cdd90a8a9e20) M +2 -0 libs/ui/actions/kis_selection_action_factories.cpp https://invent.kde.org/graphics/krita/commit/9ed1797d99fafe31731ec80b1cc085b5cb4540a8 Thanks for the workaround, Dmitry. :) |