From 9d602fde3a77aa0602d8bf92501ba0528598df17 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Feb 2015 19:25:02 +0000 Subject: Fix label alignment in ports without value labels. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5569 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/port.c') diff --git a/src/port.c b/src/port.c index 48fcc51..9a97e0b 100644 --- a/src/port.c +++ b/src/port.c @@ -276,12 +276,13 @@ ganv_port_place_labels(GanvPort* port) "y", (port_h - vlabel_h) / 2.0, NULL); } + vlabel_w += PORT_LABEL_HPAD; } if (label) { const double label_h = label->impl->coords.height; if (ganv_canvas_get_direction(canvas) == GANV_DIRECTION_RIGHT) { ganv_item_set(GANV_ITEM(label), - "x", vlabel_w + 2 * PORT_LABEL_HPAD, + "x", vlabel_w + PORT_LABEL_HPAD, "y", (port_h - label_h) / 2.0, NULL); } -- cgit v1.2.1