--- a/GC.st Wed Jun 09 19:09:48 1999 +0200
+++ b/GC.st Wed Jun 09 19:11:18 1999 +0200
@@ -346,17 +346,20 @@
].
White isNil ifTrue:[
+ "/ mhmh - the next two checks are historic leftOvers;
+ "/ they should never be nil.
Color isNil ifTrue:[^ self].
+ Font isNil ifTrue:[^ self].
White := Color white.
Black := Color black.
- Display isNil ifTrue:[^ self].
-
Color initialize.
- White := White on:Display.
- Black := Black on:Display.
+ Display notNil ifTrue:[
+ White := White on:Display.
+ Black := Black on:Display.
+ ].
Font initialize.
DefaultFont := Font family:'courier' face:'medium' style:'roman' size:12
@@ -2135,6 +2138,6 @@
!GraphicsContext class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Attic/GC.st,v 1.75 1999-06-09 17:09:48 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Attic/GC.st,v 1.76 1999-06-09 17:11:18 cg Exp $'
! !
GraphicsContext initialize!
--- a/GraphicsContext.st Wed Jun 09 19:09:48 1999 +0200
+++ b/GraphicsContext.st Wed Jun 09 19:11:18 1999 +0200
@@ -346,17 +346,20 @@
].
White isNil ifTrue:[
+ "/ mhmh - the next two checks are historic leftOvers;
+ "/ they should never be nil.
Color isNil ifTrue:[^ self].
+ Font isNil ifTrue:[^ self].
White := Color white.
Black := Color black.
- Display isNil ifTrue:[^ self].
-
Color initialize.
- White := White on:Display.
- Black := Black on:Display.
+ Display notNil ifTrue:[
+ White := White on:Display.
+ Black := Black on:Display.
+ ].
Font initialize.
DefaultFont := Font family:'courier' face:'medium' style:'roman' size:12
@@ -2135,6 +2138,6 @@
!GraphicsContext class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/GraphicsContext.st,v 1.75 1999-06-09 17:09:48 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/GraphicsContext.st,v 1.76 1999-06-09 17:11:18 cg Exp $'
! !
GraphicsContext initialize!