[gimp] plug-ins: fix indentation b0rk from previous commit



commit 9a4abedb9896357edafef6ef11110ac4a61c15a2
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jan 31 21:28:12 2012 +0100

    plug-ins: fix indentation b0rk from previous commit

 plug-ins/file-bmp/bmp-read.c |   56 +++++++++++++++++++++---------------------
 1 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/plug-ins/file-bmp/bmp-read.c b/plug-ins/file-bmp/bmp-read.c
index a1b5620..78e2cbf 100644
--- a/plug-ins/file-bmp/bmp-read.c
+++ b/plug-ins/file-bmp/bmp-read.c
@@ -689,41 +689,41 @@ ReadImage (FILE                  *fd,
                                     (gdouble) max_progress);
           }
 
-    if (channels == 4)
-      {
-        gboolean  has_alpha = FALSE;
-
-        /* at least one pixel should have nonzero alpha */
-        for (ypos = 0; ypos < height; ypos++)
-          {
-        temp = dest + (ypos * rowstride);
-        for (xpos = 0; xpos < width; xpos++)
+        if (channels == 4)
           {
-            if (temp[3])
+            gboolean  has_alpha = FALSE;
+
+            /* at least one pixel should have nonzero alpha */
+            for (ypos = 0; ypos < height; ypos++)
               {
-            has_alpha = TRUE;
-            break;
+                temp = dest + (ypos * rowstride);
+                for (xpos = 0; xpos < width; xpos++)
+                  {
+                    if (temp[3])
+                      {
+                        has_alpha = TRUE;
+                        break;
+                      }
+                    temp += 4;
+                  }
+                if (has_alpha)
+                  break;
               }
-            temp += 4;
-          }
-        if (has_alpha)
-          break;
-          }
 
-        /* workaround unwanted behaviour when all alpha pixels are zero */
-        if (!has_alpha)
-          {
-        for (ypos = 0; ypos < height; ypos++)
-          {
-            temp = dest + (ypos * rowstride);
-            for (xpos = 0; xpos < width; xpos++)
+            /* workaround unwanted behaviour when all alpha pixels are zero */
+            if (!has_alpha)
               {
-            temp[3] = 255;
-            temp += 4;
+                for (ypos = 0; ypos < height; ypos++)
+                  {
+                    temp = dest + (ypos * rowstride);
+                    for (xpos = 0; xpos < width; xpos++)
+                      {
+                        temp[3] = 255;
+                        temp += 4;
+                      }
+                  }
               }
           }
-          }
-      }
       }
       break;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]