Depth4Image.st
changeset 8199 6aefde6bee1b
parent 8139 cd6862cfe1d7
child 8322 a3222aa2db48
--- a/Depth4Image.st	Thu Oct 12 16:50:06 2017 +0200
+++ b/Depth4Image.st	Thu Oct 12 16:50:08 2017 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -117,6 +115,8 @@
      index     "{ Class: SmallInteger }"
      byte      "{ Class: SmallInteger }" |
 
+    bytes isNil ifTrue:[ self createPixelStore ].
+
     lineIndex := (self bytesPerRow * y) + 1.
 
     "left pixel is in high bits"