aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-28 16:21:51 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-28 16:21:51 +0200
commita4b414405e398f6c033736a1e46a54f7f24c2c99 (patch)
tree18d55a8801b40b7db2f9e5391a709d66bc226595 /src
parent3bede6428958ce52d85af3ebc007fd82b5924f9c (diff)
Set all units on geometry
Diffstat (limited to 'src')
-rw-r--r--src/stylesheet_editor.c3
1 files changed, 3 insertions, 0 deletions
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;