Bug 422688

Summary: Scale Layer to New Size (Resize Layer) doesn't follow its exact number if I type those.
Product: [Applications] krita Reporter: acc4commissions
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: tamtamy.tymona
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Test file

Description acc4commissions 2020-06-09 18:15:39 UTC
SUMMARY
git bc1f57d

The title says it all. Usually it adds or subtracts 1px from what I type.

*I didn't test this with 'Scale Image to New Size'. I'm not sure if the same thing happens there.



OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Tiar 2020-08-03 23:45:06 UTC
Created attachment 130620 [details]
Test file

Confirming. I provided a test file, select the purple layer and use Layer -> Transform -> Scale Layer to New Size, select 800 and press OK.

It's good to have Grid enabled - for example 20px x 20px, with 2 subdivision. It clearly shows that the top-left corner is starting too early.

Additional notes:
- it doesn't allow you to choose the algorithm
- it doesn't allow you to choose the position after scaling
- the dialog itself works weirdly if you do those steps:
    - make sure the Constraint proportions is enabled
    - write 800
    - uncheck Constraint proportions (numeric boxes stay 800)
    - check Constraint proportions (numberic boxes are reset to 960, even though they were good for the Constraint proportions)