Bug 397342

Summary: Scale image - Print size adjustment is broken
Product: [Applications] krita Reporter: Storm Engineer <storm.anthro>
Component: UsabilityAssignee: vanyossi <ghevan>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Storm Engineer 2018-08-10 12:44:42 UTC
The print size spin boxes under "Image/Scale image to new size" behave incorrectly. When I try to input values the fields are populated by incorrect numbers. These numbers are a small fragment of the number entered.

Eg. Print size in my file is 776 x 1233 mm. When I input "800" in the first field, the values are overwritten to 125 x 202. The wrong number gets bigger by increasing the input number, but the result is not consistent.

Clicking the increase/decrease arrows increase the value by about 0.35, instead of 1.

Updating the value of the DpI field seems to update dimensions correctly.

Reproducible both with Git master and the 4.0.4 and 4.1.1 appimages.
Comment 1 vanyossi 2018-10-16 17:40:42 UTC
Git commit 3aef5274c23158c46ddd5781873d447864f3344b by Ivan Yossi.
Committed on 16/10/2018 at 17:38.
Pushed by ivany into branch 'master'.

Raise the limit for ImageSize.

This limits the cases in which print size boxes
are not in sync.

M  +7    -4    plugins/extensions/imagesize/dlg_imagesize.cc
M  +1    -1    plugins/extensions/imagesize/dlg_imagesize.h
M  +4    -4    plugins/extensions/imagesize/wdg_imagesize.ui

https://commits.kde.org/krita/3aef5274c23158c46ddd5781873d447864f3344b
Comment 2 Halla Rempt 2018-11-20 08:58:28 UTC
Git commit c962b731b515744bd4aa17ab09e8722727d762f0 by Boudewijn Rempt, on behalf of Ivan Yossi.
Committed on 20/11/2018 at 08:23.
Pushed by rempt into branch 'krita/4.1'.

Raise the limit for ImageSize.

This limits the cases in which print size boxes
are not in sync.

M  +7    -4    plugins/extensions/imagesize/dlg_imagesize.cc
M  +1    -1    plugins/extensions/imagesize/dlg_imagesize.h
M  +4    -4    plugins/extensions/imagesize/wdg_imagesize.ui

https://commits.kde.org/krita/c962b731b515744bd4aa17ab09e8722727d762f0