Index: List.c =================================================================== RCS file: /cvs/openmotif/lib/Xm/List.c,v retrieving revision 1.22 diff -u -r1.22 List.c --- List.c 7 Aug 2007 15:55:02 -0000 1.22 +++ List.c 3 Oct 2007 06:36:47 -0000 @@ -3658,12 +3658,16 @@ XmStringFree(lw->list.items[pos]); lw->list.items[pos] = XmStringCopy(item); /*Selected items should be replaced also*/ + UpdateSelectedPositions(lw, lw->list.selectedItemCount); for(i=0; ilist.selectedItemCount; i++) + { if(lw->list.selectedPositions[i]==pos+1) { XmStringFree(lw->list.selectedItems[i]); lw->list.selectedItems[i]=XmStringCopy(item); } - + } }