fix line edit property when bus and dash are given
This commit is contained in:
parent
ae4821a12c
commit
f61c17a27b
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue