Description: Add missing dereferencing of indirect objects in /Mask array
Origin: http://svn.ghostscript.com/viewvc?view=rev&revision=10751
Author: Alex Cherepanov <alex.cherepanov@artifex.com>
Bug: http://bugs.ghostscript.com/show_bug.cgi?id=691112
Forwarded: yes
Last-Update: 2010-02-28
--- a/Resource/Init/pdf_draw.ps
+++ b/Resource/Init/pdf_draw.ps
@@ -1289,9 +1289,14 @@
     //false 1 index {
       type /integertype ne or
     } forall {
-      (\n   **** Warning: Some elements of Mask array are not integers.\n)
-      pdfformaterror
-      [ exch { 0.5 add cvi } forall ]  % following AR4, 5, 6 implementation
+      oforce_array
+      //false 1 index {
+        type /integertype ne or
+      } forall {
+        (\n   **** Warning: Some elements of Mask array are not integers.\n)
+        pdfformaterror
+        [ exch { 0.5 add cvi } forall ]  % following AR4, 5, 6 implementation
+      } if
     } if
 	% Check elements of array are within 0::(2**BitsPerComponent)-1
 	% This is a PostScript error, but AR ignores Mask in that case
