[gs-commits] ghostpdl branch, pdfi, updated. jbig2dec-0.14-2336-gd34dcfc

[email protected] (Nancy Durgin) Thu, 17 Oct 2019 20:03:50 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, pdfi has been updated
       via  d34dcfca0b4a384ab03c822df109369a27a707da (commit)
      from  8626e2c124fb9d57c92df56d551f27aac7da7861 (commit)

----------------------------------------------------------------------
commit d34dcfca0b4a384ab03c822df109369a27a707da
Author: Nancy Durgin <[email protected]>
Date:   Thu Oct 17 11:44:05 2019 -0700

    Fix j and J operators to use the int values
    
    They were using the double values instead.  Also removed the cast since
    it was unnecessary and was hiding the bug...
    
    Fixes fts_08_0801.pdf plus tons of changes to other files (mostly subtle).

diff --git a/pdf/pdf_gstate.c b/pdf/pdf_gstate.c
index 8a063e2..51d0567 100644
--- a/pdf/pdf_gstate.c
+++ b/pdf/pdf_gstate.c
@@ -324,7 +324,7 @@ int pdfi_setlinejoin(pdf_context *ctx)
 
     n1 = (pdf_num *)ctx->stack_top[-1];
     if (n1->type == PDF_INT){
-        code = gs_setlinejoin(ctx->pgs, (gs_line_join)n1->value.d);
+        code = gs_setlinejoin(ctx->pgs, n1->value.i);
     } else {
         pdfi_pop(ctx, 1);
         if (ctx->pdfstoponerror)
@@ -352,7 +352,7 @@ int pdfi_setlinecap(pdf_context *ctx)
 
     n1 = (pdf_num *)ctx->stack_top[-1];
     if (n1->type == PDF_INT){
-        code = gs_setlinecap(ctx->pgs, (gs_line_cap)n1->value.d);
+        code = gs_setlinecap(ctx->pgs, n1->value.i);
     } else {
         pdfi_pop(ctx, 1);
         if (ctx->pdfstoponerror)


Summary of changes:
 pdf/pdf_gstate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)