Bug 464625

Summary: Flip/Mirror Operations Sometimes Flip on the Wrong Axis
Product: [Applications] krita Reporter: Hamish Turnbull <snowleopard>
Component: Tools/TransformAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.1.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video showing how "Mirror horizontal" and "vertical" do the opposite function

Description Hamish Turnbull 2023-01-22 00:07:45 UTC
Created attachment 155492 [details]
Video showing how "Mirror horizontal" and "vertical" do the opposite function

SUMMARY
Sometimes, when I try to flip a selection, it flips on the opposite axis, rather than the axis it's supposed to use.

The tooltips match the icons, but the functionality seems to be switched between the two buttons.

I've been having the same problem with the "Layer > Transform... > Mirror Layer Horizontally/Vertically" operations.


STEPS TO REPRODUCE
1. Select an area of pixels in a paint layer
2. Select the Transform tool in the toolbox (Ctrl+T)
3. In the Tool Options docker, scroll down and click one of the Flip Selection buttons.

OBSERVED RESULT
The "flip selection horizontally" button causes the selection to flip vertically (turning upside-down), and the "flip selection vertically" causes the selection to flip horizontally.

EXPECTED RESULT
"flip selection horizontally" should make the selection flip horizontally, and "flip selection vertically" should flip it vertically.

SOFTWARE/OS VERSIONS
Windows 10 64-bit: 10.0.19045
Qt Version: 5.12.12

ADDITIONAL INFORMATION