Bug 320897

Summary: selection files with selection rectangle doesn't work if the rectangle has 0 pixel height
Product: [Applications] dolphin Reporter: Teodor <teod0r>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR Keywords: usability
Version: 16.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.5

Description Teodor 2013-06-08 13:15:57 UTC
While selecting a file with selection rectange, it may unselect, if rectangle becomes 0 pixels. It is necesary to prevent the rectangle from being reduced to zero, if it has been appeared at least for 1 pixel.

Also it won't select at all if you move the cursor left or right while clicking, you have to move it up or down

Reproducible: Always

Steps to Reproduce:
1.just try to select a file with the selection rectangle, which has 0 pixel height
Actual Results:  
nothing will be selected

Expected Results:  
a file should be selected
Comment 1 Kai Uwe Broulik 2013-06-10 11:59:35 UTC
Works fine in Open/Save dialogs, doesn't work in Dolphin. Re-assigning.
Comment 2 Teodor 2013-06-10 12:18:22 UTC
> It is necesary to prevent the rectangle from being reduced to zero, if it has been appeared at least for 1 pixel.

I think it would be better to make rectangle always have at least 1 pixel
Comment 3 Emmanuel Pescosta 2013-06-20 17:10:57 UTC
Git commit 22d93e8f31777de3484b89b5f314aa8ac169367f by Emmanuel Pescosta.
Committed on 20/06/2013 at 17:02.
Pushed by emmanuelp into branch 'KDE/4.10'.

Prevent the selection rectangle from being reduced to 0px
width or 0px height, so the selected items can not be accidently
unselected when the rectangle width/height becomes 0px.
REVIEW: 111144
FIXED-IN: 4.10.5

M  +16   -0    dolphin/src/kitemviews/private/kitemlistrubberband.cpp

http://commits.kde.org/kde-baseapps/22d93e8f31777de3484b89b5f314aa8ac169367f