From 18658e26cb65aa99b7dba4954a973000e057929f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Ko=C5=9Bciuszkiewicz?= Date: Wed, 18 Jan 2012 23:53:41 +0100 Subject: [PATCH] gschem: fix drawing of junction cues Closes bug "disappearing dots in gschem" reported by Gabriel Paubert . Issue was introduced in commit 6cae96e. Additionally, now junction cues are also drawn when 3 or more pins are connected (same behavior as for net segments). (cherry picked from commit 0df45c9f859537bf9683b7fa8fb3d4b35828672e) --- gschem/src/o_cue.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/gschem/src/o_cue.c b/gschem/src/o_cue.c index 7690baeb1..92ee7f715 100644 --- a/gschem/src/o_cue.c +++ b/gschem/src/o_cue.c @@ -181,28 +181,15 @@ void o_cue_draw_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *object, int whichon switch(type) { case(CONN_ENDPOINT): - if (object->type == OBJ_NET) { /* only nets have these cues */ + if (object->type == OBJ_NET || object->type == OBJ_PIN) { if (count < 1) { /* Didn't find anything connected there */ size = CUE_BOX_SIZE; gschem_cairo_center_box (w_current, -1, -1, x, y, size, size); o_cue_set_color (w_current, NET_ENDPOINT_COLOR); cairo_fill (w_current->cr); - } else if (count >= 2) { draw_junction_cue (w_current, x, y, bus_involved); } - } else if (object->type == OBJ_PIN) { - /* Didn't find anything connected there */ - if (count < 1 && object->whichend == whichone) { - size = (bus_involved) ? PIN_CUE_SIZE_BUS : PIN_CUE_SIZE_NET; - - otherone = !whichone; - - o_cue_set_color (w_current, NET_ENDPOINT_COLOR); - gschem_cairo_center_box (w_current, -1, -1, x, y, size, size); - o_cue_set_color (w_current, NET_ENDPOINT_COLOR); - cairo_fill (w_current->cr); - } } break; -- 2.11.4.GIT