--- a/DSVColumnView.st Wed Apr 11 20:32:01 2001 +0200
+++ b/DSVColumnView.st Mon Apr 23 12:01:53 2001 +0200
@@ -3422,8 +3422,11 @@
oldCol := selectedColIndex.
oldRow := selectedRowIndex.
- selectedRowIndex := rowNr.
- selectedColIndex := colNr.
+ "/ cg: must change the selectedRow/Col AFTER we have stored the editValue.
+ "/ (otherwise, the editvalue might be stored into the new col as well ...)
+
+"/ selectedRowIndex := rowNr.
+"/ selectedColIndex := colNr.
oldSz == 1 ifTrue:[
multipleSelectOk ifTrue:[oldRow := oldRow at:1].
@@ -3459,6 +3462,9 @@
].
self destroyEditView.
].
+ selectedRowIndex := rowNr.
+ selectedColIndex := colNr.
+
shown ifFalse:[^ self ].
oldSz > 1 ifTrue:[ "/ redraw old selection
@@ -3567,5 +3573,5 @@
!DSVColumnView class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.129 2001-03-30 14:53:03 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.130 2001-04-23 10:01:53 cg Exp $'
! !