changed: #initStyle
authorClaus Gittinger <cg@exept.de>
Fri, 20 Jan 2012 15:48:35 +0100
changeset 4101 675d38e2ad1e
parent 4100 a254e9726fc0
child 4102 7dc70f1ff7aa
changed: #initStyle fix: care for nonexising style entries
DSVColumnView.st
--- a/DSVColumnView.st	Thu Jan 19 15:21:46 2012 +0100
+++ b/DSVColumnView.st	Fri Jan 20 15:48:35 2012 +0100
@@ -3132,12 +3132,16 @@
         selectionForegroundColorNoFocus := selectionForegroundColor.
     ].
     selectionBackgroundColorNoFocus isNil ifTrue:[
-        selectionBackgroundColorNoFocus := selectionBackgroundColor lightened.
-        "/ selectionBackgroundColorNoFocus := Color brightness:(selectionBackgroundColor "lightened" brightness).   "/ asGray.
+        selectionBackgroundColor notNil ifTrue:[
+            selectionBackgroundColorNoFocus := selectionBackgroundColor lightened.
+            "/ selectionBackgroundColorNoFocus := Color brightness:(selectionBackgroundColor "lightened" brightness).   "/ asGray.
+        ].
     ].
     selectionFrameColorNoFocus isNil ifTrue:[
-        selectionFrameColorNoFocus := selectionFrameColor lightened.  
-        "/ selectionFrameColorNoFocus := Color brightness:(selectionFrameColor "lightened" brightness).   "/ asGray
+        selectionFrameColor notNil ifTrue:[
+            selectionFrameColorNoFocus := selectionFrameColor lightened.  
+            "/ selectionFrameColorNoFocus := Color brightness:(selectionFrameColor "lightened" brightness).   "/ asGray
+        ]
     ].
 
     rowSelectorForm         := self class rowSelectorImage.
@@ -3171,7 +3175,7 @@
     comboButtonLevel  := ComboButtonLevel.
     comboButtonExtent := ComboButtonExtent.
 
-    "Modified: / 20-01-2011 / 08:59:35 / cg"
+    "Modified: / 20-01-2012 / 15:48:13 / cg"
 !
 
 initialize
@@ -4719,9 +4723,9 @@
 !DSVColumnView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.276 2012-01-07 16:01:51 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.277 2012-01-20 14:48:35 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.276 2012-01-07 16:01:51 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.277 2012-01-20 14:48:35 cg Exp $'
 ! !