Bug 331805 - selection gets bigger than image
Summary: selection gets bigger than image
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.8 Beta
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-06 10:16 UTC by Martin Tlustos
Modified: 2014-03-15 09:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Shoul fix the bug. (1.13 KB, patch)
2014-03-13 17:30 UTC, matthias
Details
Fix the bug in a better way. (1.16 KB, patch)
2014-03-13 18:13 UTC, matthias
Details

Note You need to log in before you can comment on or make changes to this bug.
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