]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/shear.c
(no commit message)
[imagemagick] / MagickCore / shear.c
index 387b740ff2cef2bbcdb5483db5b1aa6d22bcfcaf..56e9ceaf9dd62e0f1f1ee1e1e871310ee56861a7 100644 (file)
@@ -370,7 +370,7 @@ static MagickBooleanType RadonTransform(const Image *image,
         source_matrixs=DestroyMatrixInfo(source_matrixs);
       return(MagickFalse);
     }
-  if (ResetMatrixInfo(source_matrixs) == MagickFalse)
+  if (NullMatrix(source_matrixs) == MagickFalse)
     {
       destination_matrixs=DestroyMatrixInfo(destination_matrixs);
       source_matrixs=DestroyMatrixInfo(source_matrixs);
@@ -441,7 +441,7 @@ static MagickBooleanType RadonTransform(const Image *image,
       }
   }
   RadonProjection(image,source_matrixs,destination_matrixs,-1,projection);
-  (void) ResetMatrixInfo(source_matrixs);
+  (void) NullMatrix(source_matrixs);
 #if defined(MAGICKCORE_OPENMP_SUPPORT)
   #pragma omp parallel for schedule(static,4) shared(status) \
     magick_threads(image,image,image->rows,1)
@@ -759,13 +759,6 @@ MagickExport Image *IntegralRotateImage(const Image *image,size_t rotations,
   rotate_view=AcquireAuthenticCacheView(rotate_image,exception);
   switch (rotations)
   {
-    case 0:
-    {
-      /*
-        Rotate 0 degrees.
-      */
-      break;
-    }
     case 1:
     {
       size_t
@@ -1104,6 +1097,8 @@ MagickExport Image *IntegralRotateImage(const Image *image,size_t rotations,
         page.x=(ssize_t) (page.width-rotate_image->columns-page.x);
       break;
     }
+    default:
+      break;
   }
   rotate_view=DestroyCacheView(rotate_view);
   image_view=DestroyCacheView(image_view);