[gs-commits] ghostpdl branch, pdfi, updated. jbig2dec-0.14-2218-g9a1417e

[email protected] (Nancy Durgin) Wed, 25 Sep 2019 21:43:44 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, pdfi has been updated
       via  9a1417ebead7b788f6fb060f07e6d56e570fcf36 (commit)
      from  c736da72fd191e8bfe114ec0c9db26f39fa20f29 (commit)

----------------------------------------------------------------------
commit 9a1417ebead7b788f6fb060f07e6d56e570fcf36
Author: Nancy Durgin <[email protected]>
Date:   Wed Sep 25 13:31:40 2019 -0700

    Fix typo in DeviceN colorspace
    
    Fixing a typo in pdfi_create_DeviceN().  It was using hard-coded 0
    instead of the index to fetch color names, which ultimately ended up
    rendering the wrong color (orange instead of purple) in
    tests_private/comparefiles/Bug692933.pdf

diff --git a/pdf/pdf_colour.c b/pdf/pdf_colour.c
index 43535dd..9e0b008 100644
--- a/pdf/pdf_colour.c
+++ b/pdf/pdf_colour.c
@@ -1592,7 +1592,7 @@ static int pdfi_create_DeviceN(pdf_context *ctx, pdf_array *color_array, int ind
 
     for (ix = 0;ix < pdfi_array_size(inks);ix++) {
         pdf_name *ink_name;
-        code = pdfi_array_get_type(ctx, inks, 0, PDF_NAME, (pdf_obj **)&ink_name);
+        code = pdfi_array_get_type(ctx, inks, ix, PDF_NAME, (pdf_obj **)&ink_name);
         if (code < 0)
             goto pdfi_devicen_error;
 


Summary of changes:
 pdf/pdf_colour.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)