Oops, fixed CairoGraphicsContext>>width:height:
Must test whether a Cairo context has been created. If not,
we're done.
--- a/CairoGraphicsContext.st Tue Apr 05 07:44:27 2016 +0100
+++ b/CairoGraphicsContext.st Tue Apr 05 08:02:32 2016 +0100
@@ -267,10 +267,12 @@
!
width: width height: height
- device isX11Platform ifTrue:[
- cr surface width: width height: height
- ] ifFalse:[
- self destroyCR.
+ cr notNil ifTrue:[
+ device isX11Platform ifTrue:[
+ cr surface width: width height: height
+ ] ifFalse:[
+ self destroyCR.
+ ].
].
"Created: / 02-04-2016 / 15:37:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"