]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 24 May 2012 13:07:10 +0000 (13:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 24 May 2012 13:07:10 +0000 (13:07 +0000)
coders/svg.c

index ca20d1bd9a2c58f5e1f5e5d48552be6970b1dbcc..65fe7fdcb97a6c0ae9f671f5ccf55df944b03cb2 100644 (file)
@@ -2878,8 +2878,11 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception)
             stride;
 
 #if defined(MAGICKCORE_CAIRO_DELEGATE)
+          stride=4*image->column);
+#if defined(MAGICKCORE_PANGOCAIRO_DELEGATE)
           stride=(size_t) cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32,
             image->columns);
+#endif
           pixels=(unsigned char *) AcquireQuantumMemory(stride,image->rows*
             sizeof(*pixels));
           if (pixels == (unsigned char *) NULL)