From 3de0a966ce1ecc78fc910a2bb0b4c956669db9d2 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 6 Dec 2009 15:34:07 +0000 Subject: [PATCH] --- coders/svg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coders/svg.c b/coders/svg.c index 529d0db96..fdbaaedd2 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -2780,8 +2780,8 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) g_error_free(error); #if defined(MAGICKCORE_CAIRO_DELEGATE) rsvg_handle_get_dimensions(svg_handle,&dimension_info); - image->columns=dimension_info.width*image->x_resolution/72.0; - image->rows=dimension_info.height*image->x_resolution/72.0; + image->columns=dimension_info.width; + image->rows=dimension_info.height; pixels=(unsigned char *) NULL; #else pixel_info=rsvg_handle_get_pixbuf(svg_handle); @@ -2826,8 +2826,6 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } cairo_info=cairo_create(cairo_surface); - cairo_scale(cairo_info,image->x_resolution/72.0,image->y_resolution/ - 72.0); cairo_set_operator(cairo_info,CAIRO_OPERATOR_CLEAR); cairo_paint(cairo_info); cairo_set_operator(cairo_info,CAIRO_OPERATOR_OVER); -- 2.40.0