Bug 374493

Summary: Page orientation does not affect previously selected dimension in New Image dialog
Product: [Applications] krita Reporter: Neviril <nevineviril>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Severity: minor CC: halla
Priority: NOR    
Version: 3.1.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Neviril 2017-01-03 11:45:06 UTC

Always reproducible.

=How to reproduce=

1) File > New. The new image creation dialog appears;
2) Click on the Width or Height dimension box to edit it;
3) Click the orientation icons (Vertical|Horizontal) one or more times.

=What happens=

The selected dimension does not get affected by the page orientation setting and as a result the width and height will become equal (square).

=Expected result=

The page orientation setting should have an effect even after one of the dimensions has been previously clicked for editing.
Comment 1 Halla Rempt 2017-01-03 11:49:13 UTC
Hi Neviril,

Thanks for your report. I can confirm the issue. It only happens if one of the width or height entry boxes has the edit focus.
Comment 2 Anna Medonosova 2019-04-06 14:44:17 UTC
Git commit 6f3ea24f84e2f70b3dbbfd1837fa223d297f4309 by Anna Medonosova.
Committed on 06/04/2019 at 14:44.
Pushed by amedonosova into branch 'master'.

Fix page orientation switch in new image dialog

KisDoubleParseSpinBox does not update it's state while being edited (to
allow for the math formulas to work correctly). If the cursor is in the
number field while the user is changing page orientation, the focused
spinbox's value does not change. To work around that, this patch clears
focus on the width and height spinboxes before switching page

Reviewers: #krita, rempt

Reviewed By: #krita, rempt

Tags: #krita

Differential Revision: https://phabricator.kde.org/D20300

M  +3    -0    libs/ui/widgets/kis_custom_image_widget.cc