From acff16a17be22a03487c81d55d2240b3393c4f3a Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 16 Aug 2012 00:21:35 +0000 Subject: [PATCH] --- coders/svg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/coders/svg.c b/coders/svg.c index ea2c866c9..ab6d4a759 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -315,13 +315,13 @@ static double GetUserSpaceCoordinateValue(const SVGInfo *svg_info,int type, if (type > 0) { if (svg_info->view_box.width == 0.0) - return(1000.0); + return(0.0); return(svg_info->view_box.width*value/100.0); } if (type < 0) { if (svg_info->view_box.height == 0.0) - return(1000.0); + return(0.0); return(svg_info->view_box.height*value/100.0); } alpha=value-svg_info->view_box.width; @@ -3014,7 +3014,7 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) { double gamma; - + gamma=QuantumScale*fill_color.alpha; gamma=MagickEpsilonReciprocal(gamma); fill_color.blue*=gamma; @@ -3022,8 +3022,8 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) fill_color.red*=gamma; } #endif - CompositePixelOver(image,&fill_color,fill_color.alpha,q, - (double) GetPixelAlpha(image,q),q); + CompositePixelOver(image,&fill_color,fill_color.alpha,q,(double) + GetPixelAlpha(image,q),q); q+=GetPixelChannels(image); } if (SyncAuthenticPixels(image,exception) == MagickFalse) -- 2.40.0