fix line edit property when bus and dash are given

This commit is contained in:
Stefan Schippers 2020-09-07 14:13:07 +02:00
parent ae4821a12c
commit f61c17a27b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;