changed: #codeCompletionForVariable:inClass:codeView: expecco_2_2_0 expecco_2_2_5
authorClaus Gittinger <cg@exept.de>
Thu, 23 Aug 2012 00:18:27 +0200
changeset 4141 08e3afdffc2b
parent 4140 267c46c27c2a
child 4142 0d4544915494
changed: #codeCompletionForVariable:inClass:codeView:
DoWhatIMeanSupport.st
--- a/DoWhatIMeanSupport.st	Fri Aug 03 17:53:14 2012 +0200
+++ b/DoWhatIMeanSupport.st	Thu Aug 23 00:18:27 2012 +0200
@@ -909,6 +909,7 @@
         addWithFactorBlock value:#('thisContext') value:(1 * localFactor).
     ].
 
+    allDistances isEmpty ifTrue:[^ self].
     bestAssoc := allDistances at:1.
     bestAssoc := allDistances inject:bestAssoc into:[:el :best | el value > best value
                                                            ifTrue:[el]
@@ -953,7 +954,7 @@
 
     "Created: / 10-11-2006 / 13:16:33 / cg"
     "Modified: / 16-02-2010 / 10:13:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 30-10-2011 / 10:59:44 / cg"
+    "Modified: / 22-08-2012 / 22:07:24 / cg"
 !
 
 findNodeForInterval:interval in:source
@@ -2272,5 +2273,5 @@
 !DoWhatIMeanSupport class methodsFor:'documentation'!
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/DoWhatIMeanSupport.st,v 1.93 2012-07-21 10:36:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/DoWhatIMeanSupport.st,v 1.94 2012-08-22 22:18:27 cg Exp $'
 ! !