Bug 461076

Summary: Horyzontal/Vertical mirror tool (top toolbar) starts on top-left corner (x=0, y=0) instead of center
Product: [Applications] krita Reporter: David REVOY <info>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: griffinvalley, lynx.mw+kde
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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