Bug 429937

Summary: Layer rotation moves the selection 1px upwards
Product: [Applications] krita Reporter: Nagy Tibor <xnagytibor>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: me, tamtamy.tymona
Priority: NOR    
Version First Reported In: 4.4.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Reproduction
Video
big test file

Description Nagy Tibor 2020-12-02 16:53:56 UTC
Created attachment 133818 [details]
Reproduction

SUMMARY
When rotating square shaped selections to the right, the selection sometimes gets pushed upwards by 1 pixel.

STEPS TO REPRODUCE
1. Open the attached image.
2. Select the 12x12 pixel blue square with the rectangular selection tool.
3. Layer -> Transform -> Rotate -> Rotate Layer 90° to the Right
4. Repeat step 3.

OBSERVED RESULT
The selection moves 1px upwards on each rotation until it stops at some point.

EXPECTED RESULT
Rotate the selection in-place without moving it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.20
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Only happens when rotating right.
Comment 1 Nagy Tibor 2020-12-02 16:54:37 UTC
Created attachment 133819 [details]
Video
Comment 2 Tiar 2020-12-11 15:07:14 UTC
Created attachment 134004 [details]
big test file

Interestingly, it doesn't happen if you import this little picture onto a bigger picture, only when the canvas is very small.
Comment 3 Tiar 2020-12-11 15:07:45 UTC
But I can confirm it does happen if you just import that little picture using File -> New -> From Clipboard.
Comment 4 Anunay 2021-07-23 14:15:53 UTC

*** This bug has been marked as a duplicate of bug 413668 ***