Summary: | Paste At Position doesn't paste at the cursor | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | amyspark <amy> |
Component: | Tools | Assignee: | amyspark <amy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ghevan |
Priority: | NOR | Keywords: | regression, release_blocker |
Version: | 5.0.0-beta2 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/573a7622a2fbddef8379c2b84fe6eadfd24a46e6 | Version Fixed In: | |
Sentry Crash Report: |
Description
amyspark
2021-11-26 15:06:13 UTC
Git commit 30f7b1c9e966dca97f83f24da077df2789168aa8 by L. E. Segovia. Committed on 27/11/2021 at 00:43. Pushed by lsegovia into branch 'krita/5.0'. Fix position inconsistency in Paste at Cursor URL-backed images are handled by KisClipboardUtil::clipboardHasUrlsAction, which sidesteps all positioning logic. Yet, KisClipboard::instance()->clip also handles URL-backed images via KisClipboardUtil::fetchImageByURL. Conversely, clipboard bitmaps are pasted into a paint device which is then recentered. This commit fixes the dissonance by dropping the specialization, and ensuring that all clip() paths are centered. Related: bug 443111 M +0 -6 libs/ui/actions/KisPasteActionFactories.cpp M +7 -5 libs/ui/kis_clipboard.cc https://invent.kde.org/graphics/krita/commit/30f7b1c9e966dca97f83f24da077df2789168aa8 Git commit be44b3f682e6e161dd122940236b2f580667d23d by L. E. Segovia. Committed on 27/11/2021 at 00:43. Pushed by lsegovia into branch 'krita/5.0'. Fix regression in positioning of URL-based drag-and-drops 47db9c0be50fc85f38ba6c86757a7b307f0bbbd4 did not account for the position of the drop event, and instead used the cursor position. This means that, if the menu and/or the dialog popup were invoked, the paste position would be taken from the interaction with those widgets and not from the place where the action was triggered. This doesn't fix the discrepancy in painting a remote and a local image; that will be fixed in the next commit. M +20 -26 libs/ui/KisView.cpp M +4 -2 libs/ui/actions/KisPasteActionFactories.cpp M +3 -2 libs/ui/utils/KisClipboardUtil.cpp M +1 -1 libs/ui/utils/KisClipboardUtil.h https://invent.kde.org/graphics/krita/commit/be44b3f682e6e161dd122940236b2f580667d23d Git commit 689c86d924beb64ecd4f6b00cf254c004dea4c0f by L. E. Segovia. Committed on 27/11/2021 at 13:24. Pushed by lsegovia into branch 'master'. Fix regression in positioning of URL-based drag-and-drops 47db9c0be50fc85f38ba6c86757a7b307f0bbbd4 did not account for the position of the drop event, and instead used the cursor position. This means that, if the menu and/or the dialog popup were invoked, the paste position would be taken from the interaction with those widgets and not from the place where the action was triggered. This doesn't fix the discrepancy in painting a remote and a local image; that will be fixed in the next commit. (cherry picked from commit be44b3f682e6e161dd122940236b2f580667d23d) M +20 -26 libs/ui/KisView.cpp M +4 -2 libs/ui/actions/KisPasteActionFactories.cpp M +3 -2 libs/ui/utils/KisClipboardUtil.cpp M +1 -1 libs/ui/utils/KisClipboardUtil.h https://invent.kde.org/graphics/krita/commit/689c86d924beb64ecd4f6b00cf254c004dea4c0f Git commit 573a7622a2fbddef8379c2b84fe6eadfd24a46e6 by L. E. Segovia. Committed on 27/11/2021 at 13:25. Pushed by lsegovia into branch 'master'. Fix position inconsistency in Paste at Cursor URL-backed images are handled by KisClipboardUtil::clipboardHasUrlsAction, which sidesteps all positioning logic. Yet, KisClipboard::instance()->clip also handles URL-backed images via KisClipboardUtil::fetchImageByURL. Conversely, clipboard bitmaps are pasted into a paint device which is then recentered. This commit fixes the dissonance by dropping the specialization, and ensuring that all clip() paths are centered. Related: bug 443111 (cherry picked from commit 30f7b1c9e966dca97f83f24da077df2789168aa8) M +0 -6 libs/ui/actions/KisPasteActionFactories.cpp M +7 -5 libs/ui/kis_clipboard.cc https://invent.kde.org/graphics/krita/commit/573a7622a2fbddef8379c2b84fe6eadfd24a46e6 |