From f61c17a27b64471bd4781860230311becd56c2f5 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Mon, 7 Sep 2020 14:13:07 +0200 Subject: [PATCH] fix line edit property when bus and dash are given --- src/draw.c | 2 +- src/editprop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index 714c2efc..043f3356 100644 --- a/src/draw.c +++ b/src/draw.c @@ -793,7 +793,7 @@ void drawline(int c, int what, double linex1, double liney1, double linex2, doub register XSegment *rr; char dash_arr[2]; - if(dash) what = NOW; + if(dash && what !=THICK) what = NOW; if(!has_x) return; rr=r; diff --git a/src/editprop.c b/src/editprop.c index 44668eb2..01c5067b 100644 --- a/src/editprop.c +++ b/src/editprop.c @@ -481,8 +481,8 @@ void edit_line_property(void) my_strdup(102, &line[c][n].prop_ptr, (char *) tclgetvar("retval")); } - dash = get_tok_value(line[c][n].prop_ptr,"dash",0); line[c][n].bus = !strcmp(get_tok_value(line[c][n].prop_ptr,"bus",0), "true"); + dash = get_tok_value(line[c][n].prop_ptr,"dash",0); if( strcmp(dash, "") ) { int d = atoi(dash); line[c][n].dash = d >= 0? d : 0;