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;