]> granicus.if.org Git - imagemagick/commitdiff
Use else to improve readability.
authorDirk Lemstra <dirk@lemstra.org>
Sun, 4 Aug 2019 09:29:28 +0000 (11:29 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sun, 4 Aug 2019 09:29:28 +0000 (11:29 +0200)
MagickCore/resize.c

index e08d556ac9c7066c1ab9e11b4998b45d1e7273ec..b20d90051b2a5be58339f0a2f6c6ab1500cebf7b 100644 (file)
@@ -2197,9 +2197,9 @@ static void Hq2XHelper(const unsigned int rule,const Quantum *source,
             offsets[4] = { e, e, d, b };
 
           MixPixels(source,offsets,4,destination,destination_offset,channels);
-          break;
         }
-      CopyPixels(source,e,destination,destination_offset,channels);
+      else
+        CopyPixels(source,e,destination,destination_offset,channels);
       break;
     }
     case 13:
@@ -2210,9 +2210,9 @@ static void Hq2XHelper(const unsigned int rule,const Quantum *source,
             offsets[8] = { e, e, d, d, d, b, b, b };
 
           MixPixels(source,offsets,8,destination,destination_offset,channels);
-          break;
         }
-      CopyPixels(source,e,destination,destination_offset,channels);
+      else
+        CopyPixels(source,e,destination,destination_offset,channels);
       break;
     }
     case 14:
@@ -2223,9 +2223,9 @@ static void Hq2XHelper(const unsigned int rule,const Quantum *source,
             offsets[16] = { e, e, e, e, e, e, e, e, e, e, e, e, e, e, d, b };
 
           MixPixels(source,offsets,16,destination,destination_offset,channels);
-          break;
         }
-      CopyPixels(source,e,destination,destination_offset,channels);
+      else
+        CopyPixels(source,e,destination,destination_offset,channels);
       break;
     }
     case 15: