mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-07 02:12:56 +02:00
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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user