Summary: | Crop with Ratio setting is bad implemented | ||
---|---|---|---|
Product: | [Applications] gwenview | Reporter: | Richard Llom <richard.llom> |
Component: | general | Assignee: | Gwenview Bugs <gwenview-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | danielroschka, huon, mdione, myriam, nate, null |
Priority: | NOR | ||
Version: | 4.12.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/gwenview/commit/31ac40afbc8c2206556ade5a2c025605bf307a87 | Version Fixed In: | 22.08 |
Sentry Crash Report: |
Description
Richard Llom
2014-03-16 13:54:39 UTC
This is definitely still a problem. One solution would be to only round/calculate when leaving the field, rather than every time the value is changed. *** Bug 394714 has been marked as a duplicate of this bug. *** For info, there's no need to select a custom ratio; any of the predefined ratios has the same problem. I think what is happening is that when one makes a change in one of the fields, the other one is computed based on the aspect ratio, and because that one was changed, it propagates back to the first one. Based on Huon's comment, I found the culprit 2 lines: https://bugs.kde.org/show_bug.cgi?id=332208 I wish I had more time to pour on this, sounds like a very easy change. Wrong link? If the easy change you are referring to is about simply deleting those lines, then I'm afraid it would break updating the canvas in reaction to spinning the value up and down. Perhaps we might need something more complicated like "mUpdateFrom*" as found in "resizeimagedialog.cpp". No, I think they need to connect another signal, like what Huon said here: https://bugs.kde.org/show_bug.cgi?id=332208#c1 (In reply to Marcos Dione from comment #7) > No, I think they need to connect another signal, like what Huon said here: > > https://bugs.kde.org/show_bug.cgi?id=332208#c1 That was a high level thought I had at the time. I now think copying the logic in the resize dialog is better, in order to keep the update-as-you-type behaviour, which IMO is better UX. Git commit 31ac40afbc8c2206556ade5a2c025605bf307a87 by Nate Graham, on behalf of Alban Boissard. Committed on 12/05/2022 at 14:43. Pushed by ngraham into branch 'master'. Make spinboxes in Crop tool behave properly with fixed aspect ratio When the aspect ratio is fixed in the crop tool, if we change the value of a spinbox, the other spinbox is set accordingly but trigger a signal that change the value of the first spinbox. This commit fixes that wrong behavior. FIXED-IN: 22.08 Signed-off-by: Alban Boissard <albanboissard@gmail.com> M +10 -2 lib/crop/cropwidget.cpp https://invent.kde.org/graphics/gwenview/commit/31ac40afbc8c2206556ade5a2c025605bf307a87 Looks good! Thanks for your time :) |