#BUGFIX
authorClaus Gittinger <cg@exept.de>
Sat, 10 Oct 2015 16:53:50 +0200
changeset 4896 da341597ded6
parent 4895 a583b1dc8769
child 4897 d933b75e436f
#BUGFIX class: HierarchicalListView comment/format in: #widthOfWidestLineBetween:and:
HierarchicalListView.st
--- a/HierarchicalListView.st	Sat Oct 10 16:53:40 2015 +0200
+++ b/HierarchicalListView.st	Sat Oct 10 16:53:50 2015 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1999 by eXept Software AG
 	      All Rights Reserved
@@ -981,9 +983,8 @@
 
     UserPreferences current showDottedLinesInTree ifFalse:[^ self].
 
-    item := list at:start ifAbsent:nil.
-    item isNil ifTrue:[^ nil].
-    
+    item := list at:start ifAbsent:[^ nil ].
+
     self paint:lineColor on:bgColor.
 
     OperatingSystem isMSWINDOWSlike ifTrue:[
@@ -998,12 +999,10 @@
     list from:start to:stop do:[:eachItem|
         self drawVericalLineForElement:eachItem minX:xL maxX:xR.
     ].
-    item notNil ifTrue:[
-        [ (item := item parent) notNil ] whileTrue:[
-            self drawVericalLineForElement:item minX:xL maxX:xR.
-        ].
+    [ (item := item parent) notNil ] whileTrue:[
+        self drawVericalLineForElement:item minX:xL maxX:xR.
     ].
-    
+
     "/ draw all the horizontal lines
     yNext := self yVisibleOfLine:start.