Summary: | Crop tool failed to recognize current document size after using it for once | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Tyson Tan <tysontanx> |
Component: | Tools/Transform | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | freebox64, halla |
Priority: | NOR | ||
Version First Reported In: | 2.9.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/45316325d47d9f4b48d4f84b69c0827bbcdb9844 | Version Fixed In: | |
Sentry Crash Report: |
Description
Tyson Tan
2015-04-21 14:45:40 UTC
I've reopened the bug. I've also given you the powers to edit all aspects of a bug -- I'll try and look at this bug tonight, after dinner. Git commit 822bbde486bc8d52ddb3f99f466c8bc30e96009a by Boudewijn Rempt. Committed on 21/04/2015 at 17:47. Pushed by rempt into branch 'calligra/2.9'. M +1 -0 krita/plugins/tools/tool_crop/kis_tool_crop.cc M +16 -21 krita/plugins/tools/tool_crop/wdg_tool_crop.ui http://commits.kde.org/calligra/822bbde486bc8d52ddb3f99f466c8bc30e96009a Git commit 46f7f079e96968f2261b697851213e891515cbfe by Boudewijn Rempt. Committed on 21/04/2015 at 18:34. Pushed by rempt into branch 'calligra/2.9'. Also reset the final rect after cropping with the new image size M +3 -0 krita/plugins/tools/tool_crop/kis_tool_crop.cc http://commits.kde.org/calligra/46f7f079e96968f2261b697851213e891515cbfe Thank you, Boud! Crop tool works like a charm now. :D Sorry, today I found Crop tool has new problems when used with Scale tool. Steps to reproduce of problem A: 1. Create a new 1000x1000 document; 2. Menu>Image>Scale to 100x100; 3. Crop tool, choose the whole canvas then ESC to cancel (you can crop, the result is the same); 4. Undo the resize so it's back to 1000x1000; 5. Crop tool (grow unchecked) can only select a 100x100 area. Steps to reproduce of problem B: 1. Create a new 100x100 document; 2. Menu>Image>Scale to 1000x1000; 3. Crop tool, choose the whole canvas then ESC to cancel (you can crop, the result is the same) 4. Ctrl+Z to undo resizing, back to 100x100; 5. Crop tool (grow unchecked) can now go 1000x1000. Today I further narrowed down this bug. It appeared that 2 Crop actions in a row messed it up: ---------------------- Problem A: Crop handles can go outside the canvas without turning on Grow. Steps: 1. Create a 1000x1000 new document; 2. Crop it into 1000x500; 3. Crop again, drag the handles outside the edges; 4. The handles can still go as large as 1000x1000 without turning on Grow; ---------------------- Problem B: Crop handles can only cover a small size within the canvas. 1. Create a 1000x1000 new document; 2. Resize it to 200x200; 3. Crop it once, same 200x200 is fine, because it doesn't matter; 4. Ctrl+Z twice, undo everything back to 1000x1000; 5. Crop tool; 6. Now the handles cannot go bigger than a 200x200 square. ---------------------- Workaround: Toggle Grow to clear this weird state. Yes, I can reproduce both. It seems like the Crop tool ignores that the sizes of the document have changed after the first cropping. If it was true, it would lead to wonder from where it actually draws the document sizes for its maths, just before cropping. Git commit 85708743c62802840185db74e05a85d35599a048 by Thorsten Zachmann. Committed on 19/01/2016 at 18:22. Pushed by zachmann into branch 'master'. Fix bug 346430 Make sure the crop tool allways uses the currect image size. M +1 -3 krita/plugins/tools/tool_crop/kis_tool_crop.cc http://commits.kde.org/krita/85708743c62802840185db74e05a85d35599a048 Git commit 45316325d47d9f4b48d4f84b69c0827bbcdb9844 by Boudewijn Rempt. Committed on 20/01/2016 at 10:09. Pushed by rempt into branch 'calligra/2.9'. Fix bug 346430 Make sure the crop tool allways uses the correct image size. Patch by Thorsten Zachmann M +1 -3 krita/plugins/tools/tool_crop/kis_tool_crop.cc http://commits.kde.org/calligra/45316325d47d9f4b48d4f84b69c0827bbcdb9844 |