[gimp/cage: 66/130] app: indentation



commit 58494da98230806eaddddcfec31fc9a9f8e421bc
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 19 12:02:57 2010 +0100

    app: indentation

 app/core/gimpcoords.c |   46 ++++++++++++++++++++++------------------------
 1 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/app/core/gimpcoords.c b/app/core/gimpcoords.c
index febb57c..294e016 100644
--- a/app/core/gimpcoords.c
+++ b/app/core/gimpcoords.c
@@ -215,30 +215,28 @@ gimp_coords_direction (const GimpCoords *a,
     }
   else if (delta_x == 0)
     {
-       if (delta_y > 0)
-          direction = 0.25;
-       else
-          direction = 0.75;
-     }
-   else if (delta_y == 0)
-     {
-       if (delta_x < 0)
-         direction = 0.0;
-       else
-         direction = 0.5;
-     }
-    else
-     {
-        direction = atan ((- 1.0 * delta_y) / delta_x) / (2 * G_PI);
-
-        if (delta_x > 0.0)
-          direction = direction + 0.5;
-
-        if (direction < 0.0)
-           direction = direction + 1.0;
-
-
-      }
+      if (delta_y > 0)
+        direction = 0.25;
+      else
+        direction = 0.75;
+    }
+  else if (delta_y == 0)
+    {
+      if (delta_x < 0)
+        direction = 0.0;
+      else
+        direction = 0.5;
+    }
+  else
+    {
+      direction = atan ((- 1.0 * delta_y) / delta_x) / (2 * G_PI);
+
+      if (delta_x > 0.0)
+        direction = direction + 0.5;
+
+      if (direction < 0.0)
+        direction = direction + 1.0;
+    }
 
   return direction;
 }



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