#TUNING by exept draft
authorClaus Gittinger <cg@exept.de>
Sun, 08 Sep 2019 17:02:41 +0200
changeset 3762 4d688d979769
parent 3761 9937108851a2
child 3763 c3c9e58661a6
#TUNING by exept class: UIPainter::TreeView changed: #selectionChangedFrom:
UIPainter.st
--- a/UIPainter.st	Sun Sep 08 16:43:32 2019 +0200
+++ b/UIPainter.st	Sun Sep 08 17:02:41 2019 +0200
@@ -7107,13 +7107,13 @@
     "selection has changed. update master selection and raise notification
      to canvas in case of enabled cvs events
     "
-    |sel size|
+    |sel numSelected|
 
     super selectionChangedFrom:oldSelection.
-    size := selection size.
+    numSelected := selection size.
 
     canvasEventsDisabled ifFalse:[
-        (size ~~ 0 and:[size ~~ 1 or:[selection first ~~ 1]]) ifTrue:[
+        (numSelected ~~ 0 and:[numSelected ~~ 1 or:[selection first ~~ 1]]) ifTrue:[
             sel := OrderedCollection new.
 
             selection do:[:i|
@@ -7122,14 +7122,14 @@
         ].
         self canvas updateSelectionFromModel:sel
     ].             
-    size = 1 ifTrue:[
+    numSelected == 1 ifTrue:[
         oldSelection size > 1 ifTrue: [
             (listOfNodes at:lastDrawnMaster) retrieveLabel.
             self redrawLine: lastDrawnMaster. 
             lastDrawnMaster := selection first
         ]
     ].
-    size > 1 ifTrue:[
+    numSelected > 1 ifTrue:[
         selection first ~~ lastDrawnMaster ifTrue: [
             (listOfNodes at:selection first) retrieveLabel.
             lastDrawnMaster notNil ifTrue: [(listOfNodes at:lastDrawnMaster) retrieveLabel].