]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 6 Dec 2009 15:34:07 +0000 (15:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 6 Dec 2009 15:34:07 +0000 (15:34 +0000)
coders/svg.c

index 529d0db967cf67963d4fc42315723fd0abe21624..fdbaaedd2c8732544e4f225772fd5581c3f42f32 100644 (file)
@@ -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);