| Summary: | Cut content from alpha inheriting layer pastes out of place | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | BroskiBaboski <wonkyskotny3> |
| Component: | Layer Stack | Assignee: | Dmitry Kazakov <dimula73> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahab.greybeard, dianavalerie96, dimula73, paleh21669, penguinflyer2222 |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 5.1.5 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/caaa5bc5645fc547dfa2e457808c3ab94918d55e | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
BroskiBaboski
2023-03-26 14:00:17 UTC
I can Confirm that this bug is present in the 5.1.5 appimage and the 25 March 5.2.0-prealpha (git 87759eb0fd) appimage. It seems to have been introduced in version 5.1.2 because version 5.1.1 and previous versions do not have this bug. Seems to have been caused by commit e41db7b6, which checks whether a paste is within image boundaries. Apparently alpha-inheriting layers have an empty exactBounds(), so they are caught in the
> (!clip->exactBounds().contains(image->bounds()) && !clip->exactBounds().intersects(image->bounds()))
check and get pasted at the center of the image. (libs/ui/actions/KisPasteActionFactories.cpp@234/235)
*** Bug 467861 has been marked as a duplicate of this bug. *** *** Bug 464483 has been marked as a duplicate of this bug. *** Okay, I can reproduce Git commit caaa5bc5645fc547dfa2e457808c3ab94918d55e by Dmitry Kazakov. Committed on 21/07/2023 at 15:32. Pushed by dkazakov into branch 'master'. Fix cut-pasting of an alpha-inheriting layer M +1 -1 libs/ui/actions/KisPasteActionFactories.cpp M +16 -10 libs/ui/kis_clipboard.cc https://invent.kde.org/graphics/krita/-/commit/caaa5bc5645fc547dfa2e457808c3ab94918d55e |