Depth8Image.st
changeset 8203 89787b897a18
parent 8135 821bdfaa563c
child 8323 07bdc1d52b07
--- a/Depth8Image.st	Thu Oct 12 16:50:14 2017 +0200
+++ b/Depth8Image.st	Thu Oct 12 16:50:16 2017 +0200
@@ -138,6 +138,8 @@
 %}.
     "fall back code for nonByteArray or nonInteger arguments"
 
+    bytes isNil ifTrue:[ self createPixelStore ].
+
     index := (width * y) + 1 + x.
     bytes at:index put:aPixelValue.
 !