Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338293

Summary: delete inconsistency between outline and table
Product: z_Archived Reporter: Raj Alagumalai <raj.alagumalai>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin, ram.venkataswamy
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Raj Alagumalai CLA 2011-02-25 20:24:16 EST
Build Identifier: 0.2.1.201102251334

delete inconsistency between outline and table

open contacts.xml
add 4 contacts
place cursor on third contact and hit delete
cursor moves to previous element

switch to web sites node and add 4 URLs
place cursor on third URL and hit delete
cursor moves to the next element


Reproducible: Always
Comment 1 Konstantin Komissarchik CLA 2011-03-01 17:26:50 EST
Not going to try to fix this for 0.2.1 release.
Comment 2 Konstantin Komissarchik CLA 2011-04-27 21:55:24 EDT
Fixed. Both places now use the same algorithm, which is formally defined as follows:

Try to select the item following the last to-be-deleted item.
Failing that, try to select the last item not on the to-be-deleted list.

I have also added a unit test for the algorithm.
Comment 3 Ram Venkataswamy CLA 2011-06-01 14:03:38 EDT
verified with build 0.3.0.201105261624
Comment 4 Konstantin Komissarchik CLA 2011-06-03 13:11:46 EDT
Closing.