]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/67
authorCristy <urban-warrior@imagemagick.org>
Sat, 12 Dec 2015 14:28:06 +0000 (09:28 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 12 Dec 2015 14:28:06 +0000 (09:28 -0500)
MagickCore/shear.c

index bd20125e9909992729592167c05bc18658fa2d25..41249bdd9155b86e5942164f3943d6ed60db71bc 100644 (file)
@@ -649,7 +649,7 @@ MagickExport Image *DeskewImage(const Image *image,const double threshold,
   affine_matrix.tx=0.0;
   affine_matrix.ty=0.0;
   artifact=GetImageArtifact(image,"deskew:auto-crop");
-  if (IsStringTrue(artifact) != MagickFalse)
+  if (IsStringTrue(artifact) == MagickFalse)
     {
       deskew_image=AffineTransformImage(clone_image,&affine_matrix,exception);
       clone_image=DestroyImage(clone_image);