Corrected the "flatten in place" command to force a redraw after

flattening, since the appearance of the layout will change even
though there are no physical changes.  Finally got around to
debugging and correcting the input mask-hints, which can
preserve vendor GDS by marking areas where the vendor GDS differs
from magic's automatically generated output (the method was
almost correct and only needed an input scale factor change).
This commit is contained in:
Tim Edwards 2022-12-19 16:05:38 -05:00
parent 583aaa1007
commit be40825e9a
2 changed files with 4 additions and 1 deletions

View File

@ -759,7 +759,8 @@ CIFPaintCurrent(filetype)
}
/* Multiply input planes to the same scale as the generated output */
CIFScalePlanes(CIFCurStyle->cs_scaleFactor, 1, cifCurReadPlanes);
CIFScalePlanes(CIFCurStyle->cs_scaleFactor, cifCurReadStyle->crs_scaleFactor,
cifCurReadPlanes);
/* Generate the output for these layers from the cell contents */
CIFClearPlanes(CIFPlanes);

View File

@ -2116,6 +2116,8 @@ CmdFlatten(w, cmd)
DBDeleteCell(scx.scx_use);
UndoEnable();
DBWAreaChanged(EditCellUse->cu_def, &scx.scx_use->cu_def->cd_bbox,
DBW_ALLWINDOWS, &DBAllButSpaceAndDRCBits);
return;
}