Bug 461076 - Horyzontal/Vertical mirror tool (top toolbar) starts on top-left corner (x=0, y=0) instead of center
Summary: Horyzontal/Vertical mirror tool (top toolbar) starts on top-left corner (x=0,...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-27 17:27 UTC by David REVOY
Modified: 2023-01-12 13:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David REVOY 2022-10-27 17:27:38 UTC
Hi, the Horyzontal/Vertical mirror tool (top toolbar) starts on top-left corner (x=0, y=0) instead of center.

To reproduce:
- Open Krita,  new document.
- Click on the toolbar on the mirror mode (hory or verti). 

Result:
The symmetry axe is aligned to the top left corner of the document.

Expected:
The symmetry axe is aligned in the center of the document.

Krita 5.1testing, today's appimage. Could reproduce on last 5.1 stable too.
Comment 1 Lynx3d 2022-10-27 21:46:07 UTC
Some more information:
This affects creating documents from templates, and I seems basically an aftereffect of Bug 423830 that caused inconsistent states of mirror axes in KisDocument and KisImage.
The templates that come with Krita are also affected, like any document(-template) saved prior to 5.1 beta1.

This raises some questions though:
- Should documents created from templates carry over these setting in the first place? Currently templates are basically used directly as new documents, they don't even go through document copy construction mode (which also affects metadata, see Bug 447010). But the copy construction process currently doesn't take care of setting a default mirror axes either.

- Should mirror axis configuration maybe have an explicitly uninitialized state? So that if you for example resize the canvas after document creation, the first use of mirror tool will initialize the axis to the center of the current dimensions instead of the initial dimensions? This information will not be available for old files though.
Comment 2 wolthera 2023-01-12 13:35:51 UTC
I can confirm with the Krita Version: 5.2.0-prealpha (git 5c98a72) Appimage with Qt 5.15.7