image: Indentation fix

This commit is contained in:
Timm Bäder 2018-12-30 20:25:21 +01:00
parent 1d3aa9207c
commit ea8f1469c1

View File

@ -1100,16 +1100,16 @@ gtk_image_snapshot (GtkWidget *widget,
{ {
double image_ratio = (double) width / height; double image_ratio = (double) width / height;
if (ratio > image_ratio) if (ratio > image_ratio)
{ {
w = width; w = width;
h = width / ratio; h = width / ratio;
} }
else else
{ {
w = height * ratio; w = height * ratio;
h = height; h = height;
} }
x = (width - ceil (w)) / 2; x = (width - ceil (w)) / 2;