Changed behavior of DEF read to flag labels as "sticky" so that the
layer a label is attached to in the DEF file does not get reassigned.
This commit is contained in:
parent
33a70706ac
commit
cbd279d718
|
|
@ -808,7 +808,7 @@ DefReadPins(f, rootDef, sname, oscale, total)
|
|||
GeoTransRect(&t, currect, &topRect);
|
||||
DBPaint(rootDef, &topRect, curlayer);
|
||||
DBPutLabel(rootDef, &topRect, -1, pinname, curlayer,
|
||||
pinNum | pinDir | PORT_DIR_MASK);
|
||||
pinNum | pinDir | PORT_DIR_MASK | LABEL_STICKY);
|
||||
pending = FALSE;
|
||||
pinNum++;
|
||||
}
|
||||
|
|
@ -823,7 +823,7 @@ DefReadPins(f, rootDef, sname, oscale, total)
|
|||
GeoTransRect(&t, currect, &topRect);
|
||||
DBPaint(rootDef, &topRect, curlayer);
|
||||
DBPutLabel(rootDef, &topRect, -1, pinname, curlayer,
|
||||
pinNum | pinDir | PORT_DIR_MASK);
|
||||
pinNum | pinDir | PORT_DIR_MASK | LABEL_STICKY);
|
||||
pinNum++;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue