Bug 4425 - List(SINGLE) - setSelection(int, int) doesn't deselect when start>end (1FCHJMQ)
Summary: List(SINGLE) - setSelection(int, int) doesn't deselect when start>end (1FCHJMQ)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:16 EDT by Mike Wilson CLA
Modified: 2004-04-09 07:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wilson CLA 2001-10-11 14:16:35 EDT
The second item remains selected. It should not.
It happens only when the list is SWT.SINGLE 

Shell shell = new Shell();
List l = new List(shell, SWT.SINGLE);
l.setBounds(0, 0, 100, 100);
shell.open();
l.getTopIndex();
String[] items = {"item0", "item1", "item2", "item3"};
l.setItems(items);
l.select(1);
l.setSelection(2, 1);

NOTES:

	SN (5/21/99 2:42:41 PM) -
		Wrong but the same on Motif and Windows.
Comment 1 Adam Kiezun CLA 2001-10-12 08:32:58 EDT
not mine
Comment 2 Mike Wilson CLA 2002-05-23 11:51:35 EDT
Not for R2.0.
Comment 3 Veronika Irvine CLA 2002-09-11 14:07:45 EDT
Moving from Later.
Comment 4 Steve Northover CLA 2004-04-09 07:52:39 EDT
This has been fixed for a while.  I just retested to make sure.