Bug 331805

Summary: selection gets bigger than image
Product: [Applications] krita Reporter: Martin Tlustos <martin.tlustos>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ghevan
Priority: NOR    
Version: 2.8 Beta   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Shoul fix the bug.
Fix the bug in a better way.

Description Martin Tlustos 2014-03-06 10:16:31 UTC
When selecting all ((Ctrl-A), then scaling down the selection, then inverting it, the selection includes parts outside the image.

Reproducible: Always

Steps to Reproduce:
1. Load an image
2. Ctrl-A
3. Scale down selection (e.g. 100px)
4. invert selection
Actual Results:  
Selected area involves area outside of the image

Expected Results:  
only image area should be selected (layer size is image size).
When resizing workspace size to layer size, still there are parts outside th image area that are selected.
Comment 1 vanyossi 2014-03-06 15:03:31 UTC
Thanks for the report

I can confirm this bug. It seems using any grow, shrink, feather near the edge causes the invert selection to grow beyond viewable canvas.
Comment 2 matthias 2014-03-13 17:30:01 UTC
Created attachment 85568 [details]
Shoul fix the bug.
Comment 3 matthias 2014-03-13 18:13:17 UTC
Created attachment 85569 [details]
Fix the bug in a better way.
Comment 4 Halla Rempt 2014-03-15 09:08:52 UTC
Git commit 23c430a10d2824f2cfc9279d7e2256f5f9d2a26d by Boudewijn Rempt.
Committed on 15/03/2014 at 09:06.
Pushed by rempt into branch 'master'.

Patch by Matthias, thanks!
CCMAIL:uso.cosmo.ray@gmail.com

M  +7    -0    krita/image/kis_pixel_selection.cpp

http://commits.kde.org/calligra/23c430a10d2824f2cfc9279d7e2256f5f9d2a26d
Comment 5 Halla Rempt 2014-03-15 09:09:07 UTC
Git commit 2b871ece55655a88ff01f1dec07f38c6f3d4824e by Boudewijn Rempt.
Committed on 15/03/2014 at 09:06.
Pushed by rempt into branch 'calligra/2.8'.

Patch by Matthias, thanks!
CCMAIL:uso.cosmo.ray@gmail.com

M  +7    -0    krita/image/kis_pixel_selection.cpp

http://commits.kde.org/calligra/2b871ece55655a88ff01f1dec07f38c6f3d4824e