From a4b414405e398f6c033736a1e46a54f7f24c2c99 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 28 Apr 2019 16:21:51 +0200 Subject: Set all units on geometry --- src/stylesheet_editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stylesheet_editor.c b/src/stylesheet_editor.c index bbcd335..f8f1dab 100644 --- a/src/stylesheet_editor.c +++ b/src/stylesheet_editor.c @@ -365,6 +365,9 @@ static void geometry_sig(GtkSpinButton *widget, StylesheetEditor *se) uid = gtk_combo_box_get_active_id(GTK_COMBO_BOX(se->h_units)); new_geom.h.unit = id_to_units(uid); + new_geom.x.unit = LENGTH_UNIT; + new_geom.y.unit = LENGTH_UNIT; + if ( new_geom.w.unit == LENGTH_FRAC ) new_geom.w.len /= 100.0; if ( new_geom.h.unit == LENGTH_FRAC ) new_geom.h.len /= 100.0; -- cgit v1.2.3