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:
Tim Edwards 2018-05-17 09:50:55 -04:00
parent 33a70706ac
commit cbd279d718
1 changed files with 2 additions and 2 deletions

View File

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