From 2ef7eab861abef39ae39de79fb67e863c49e9554 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 11 Aug 2016 03:09:23 -0300 Subject: [PATCH] eeshow/lib-render.c (draw_pin_name): skip initial ~ in pin name --- eeshow/lib-render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeshow/lib-render.c b/eeshow/lib-render.c index 297f60b..603b60f 100644 --- a/eeshow/lib-render.c +++ b/eeshow/lib-render.c @@ -158,7 +158,8 @@ static void draw_pin_name(const struct comp *comp, const struct lib_pin *pin, } struct text txt = { - .s = pin->name, + /* @@@ or should we strcmp "~" and if 0, ignore the name ? */ + .s = *pin->name == '~' ? pin->name + 1 : pin->name, .x = mx(pin->x + ox, pin->y + oy, m) + sx, .y = my(pin->x + ox, pin->y + oy, m) + sy, .size = pin->name_size,