Summary: | Horizontal and Vertical Mirror tools have initial placement problems with more than one open image | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Ahab Greybeard <ahab.greybeard> |
Component: | Usability | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | alvin, tamtamy.tymona |
Priority: | NOR | ||
Version: | nightly build (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/2eca9c48fd3acf94b9b09430f0ecd33a1551c339 | Version Fixed In: |
Description
Ahab Greybeard
2020-07-03 08:50:28 UTC
*** Bug 440626 has been marked as a duplicate of this bug. *** Git commit 2eca9c48fd3acf94b9b09430f0ecd33a1551c339 by Mathias Wein. Committed on 03/06/2022 at 13:11. Pushed by mwein into branch 'master'. Fix initial mirror axis positions There is some redundancy with KisImage storing the relative position of mirror axes (required by resource snapshots, but why relative?), and KisDocument the absolute positions as part of the display settings. Their default initializaion did not match though. Creating/opening another document with default mirror settings while another document was open would either pick the default initialized absolute or relative position, depending on whether the current settings are default or not. Now KisDocument properly initializes its mirror config, and is also responsible for keeping the image property in sync. M +8 -0 libs/ui/KisDocument.cpp M +10 -10 libs/ui/canvas/KisMirrorAxisConfig.cpp M +10 -10 libs/ui/canvas/KisMirrorAxisConfig.h M +4 -10 libs/ui/canvas/kis_mirror_axis.cpp https://invent.kde.org/graphics/krita/commit/2eca9c48fd3acf94b9b09430f0ecd33a1551c339 |