[gs-commits] ghostpdl branch, master, updated. ghostpdl-9.02-501-g1eb7713

Robin Watts robin at ghostscript.com
Tue Aug 9 15:58:47 UTC 2011


The ghostpdl branch, master has been updated
       via  1eb77139f09b98671e8e83b921f1c351df4ecb84 (commit)
      from  8f2ecf42738966678a8826d8de9c60c4f3684600 (commit)

----------------------------------------------------------------------
commit 1eb77139f09b98671e8e83b921f1c351df4ecb84
Author: Robin Watts <robin.watts at artifex.com>
Date:   Tue Aug 9 22:56:26 2011 +0700

    Fix (currently harmless) typo in gxdownscale.c
    
    I was testing adjust_width before accessing adjust_width_proc, when
    it would have been better to test adjust_width_proc. Currently
    adjust_width != 0 is true iff adjust_width_proc != NULL, so no
    harm other than possible warnings.

diff --git a/gs/base/gxdownscale.c b/gs/base/gxdownscale.c
index eb8fd25..55badfc 100644
--- a/gs/base/gxdownscale.c
+++ b/gs/base/gxdownscale.c
@@ -739,7 +739,7 @@ int gx_downscaler_init(gx_downscaler_t   *ds,
     int                code;
     gx_downscale_core *core;
     
-    if (adjust_width != NULL)
+    if (adjust_width_proc != NULL)
         awidth = (*adjust_width_proc)(width, adjust_width);
     pad_white = awidth - width;
     if (pad_white < 0)


Summary of changes:
 gs/base/gxdownscale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)



More information about the gs-commits mailing list