fixed store-into-wrong-col bug (imageEditors color table)
authorClaus Gittinger <cg@exept.de>
Mon, 23 Apr 2001 12:01:53 +0200
changeset 1968 857cd9f14570
parent 1967 1b4524f3105f
child 1969 e325d38ce469
fixed store-into-wrong-col bug (imageEditors color table)
DSVColumnView.st
--- 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 $'
 ! !