[gtk] image: Indentation fix



commit ea8f1469c1f109e80ef6dab12772d6339166a4d7
Author: Timm Bäder <mail baedert org>
Date:   Sun Dec 30 20:25:21 2018 +0100

    image: Indentation fix

 gtk/gtkimage.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 8acceb12e9..1546256341 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1100,16 +1100,16 @@ gtk_image_snapshot (GtkWidget   *widget,
     {
       double image_ratio = (double) width / height;
 
-    if (ratio > image_ratio)
-      {
-        w = width;
-        h = width / ratio;
-      }
-    else
-      {
-        w = height * ratio;
-        h = height;
-      }
+      if (ratio > image_ratio)
+        {
+          w = width;
+          h = width / ratio;
+        }
+      else
+        {
+          w = height * ratio;
+          h = height;
+        }
 
       x = (width - ceil (w)) / 2;
 


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