]> granicus.if.org Git - imagemagick/commitdiff
Fixed compiler warning.
authordirk <dirk@git.imagemagick.org>
Sat, 11 Oct 2014 08:11:08 +0000 (08:11 +0000)
committerdirk <dirk@git.imagemagick.org>
Sat, 11 Oct 2014 08:11:08 +0000 (08:11 +0000)
coders/svg.c

index b251dcffedaae66fd009c4a6003b85a5ad670808..aa30486b2898befbf6da62a35e0fb55f1d953fac 100644 (file)
@@ -2954,10 +2954,10 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception)
           }
         if (image_info->ping == MagickFalse)
           {
+#if defined(MAGICKCORE_CAIRO_DELEGATE)
             size_t
               stride;
 
-#if defined(MAGICKCORE_CAIRO_DELEGATE)
             stride=4*image->columns;
 #if defined(MAGICKCORE_PANGOCAIRO_DELEGATE)
             stride=(size_t) cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32,