mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-03 16:29:09 +02:00
(1) Corrected an error with extraction in which terminal area and
perimeter are not initialized, and if a terminal perimeter/area calculation is missed (which is happening on devices with terminals in planes other than the plane of the identifying type), then the perimeter/area of a previously handled device will get output. (2) Corrected an error with "flatten -inplace" in which the command fails to deal with instance arrays.
This commit is contained in:
@@ -1838,6 +1838,20 @@ extOutputDevices(def, transList, outFile)
|
||||
extTransRec.tr_plane = reg->treg_pnum; /* Save this value! */
|
||||
extTransRec.tr_subsnode = (NodeRegion *)NULL;
|
||||
|
||||
for (i = 0; i < MAXSD; i++)
|
||||
{
|
||||
extTransRec.tr_termnode[i] = NULL;
|
||||
extTransRec.tr_termlen[i] = 0;
|
||||
extTransRec.tr_termarea[i] = 0;
|
||||
extTransRec.tr_termperim[i] = 0;
|
||||
extTransRec.tr_termshared[i] = 0;
|
||||
extTransRec.tr_termvector[i].p_x = 0;
|
||||
extTransRec.tr_termvector[i].p_y = 0;
|
||||
extTransRec.tr_termpos[i].pnum = 0;
|
||||
extTransRec.tr_termpos[i].pt.p_x = 0;
|
||||
extTransRec.tr_termpos[i].pt.p_y = 0;
|
||||
}
|
||||
|
||||
arg.fra_def = def;
|
||||
arg.fra_connectsTo = ExtCurStyle->exts_deviceConn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user