summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r--gtk/src/preview.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index cbb7184d6..6164270de 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -105,10 +105,7 @@ ghb_par_scale(signal_user_data_t *ud, gint *width, gint *height, gint par_n, gin
num = par_n * disp_par_d;
den = par_d * disp_par_n;
- if (num > den)
- *width = *width * num / den;
- else
- *height = *height * den / num;
+ *width = *width * num / den;
}
void