*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Sat, 24 Oct 2009 16:03:56 +0200
changeset 5417 b4a2fe418cce
parent 5416 60f9d36d0a27
child 5418 a5e1ac27d528
*** empty log message ***
SimpleBorder.st
--- a/SimpleBorder.st	Sat Oct 24 16:02:17 2009 +0200
+++ b/SimpleBorder.st	Sat Oct 24 16:03:56 2009 +0200
@@ -54,6 +54,9 @@
 color:aColor
     "set the width"
 
+    width ~~ 0 ifTrue:[
+        self assert:aColor notNil.
+    ].
     color := aColor
 ! !
 
@@ -62,7 +65,7 @@
 displayOn:aGC forDisplayBox:aRectangle
     |oldPaint|
 
-    color isNil ifTrue:[^ self].
+    color isNil ifTrue:[ ^ self].
 
     oldPaint := aGC paint.
     aGC paint:color.
@@ -73,5 +76,5 @@
 !SimpleBorder class methodsFor:'documentation'!
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/SimpleBorder.st,v 1.3 2009-10-24 10:07:55 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/SimpleBorder.st,v 1.4 2009-10-24 14:03:56 cg Exp $'
 ! !