[cairo-commit] svg2png/src svg2png.c,1.10,1.11

Jason Dorje Short commit at pdx.freedesktop.org
Sat Aug 13 08:28:34 PDT 2005


Committed by: jdorje

Update of /cvs/cairo/svg2png/src
In directory gabe:/tmp/cvs-serv15438/src

Modified Files:
	svg2png.c 
Log Message:
Fix a bug in the latest command-line-parameters patch.  The bug caused
svg2png to fail when given no sizing arguments.


Index: svg2png.c
===================================================================
RCS file: /cvs/cairo/svg2png/src/svg2png.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- svg2png.c	13 Aug 2005 07:41:22 -0000	1.10
+++ svg2png.c	13 Aug 2005 15:28:32 -0000	1.11
@@ -140,8 +140,8 @@
 
     /* xscale, yscale, or scale <= 0 means no option */
     scale = args->scale > 0.0 ? args->scale : 1.0;
-    xscale = args->xscale > 0.0 ? args->xscale : args->scale;
-    yscale = args->yscale > 0.0 ? args->yscale : args->scale;
+    xscale = args->xscale > 0.0 ? args->xscale : scale;
+    yscale = args->yscale > 0.0 ? args->yscale : scale;
 
     if (args->width <= 0 && args->height <= 0) {
         /* Neither width or height are given.  This case is easy; we just




More information about the cairo-commit mailing list