mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 17:39:28 +02:00
Added new command option "box remove" that removes the cursor box
from the layout window. The main reason for this is to keep the box out of the image when doing "plot svg". The "plot" command was also modified to always do a plot of the entire cell in the active layout window if the box is not present.
This commit is contained in:
+5
-5
@@ -176,11 +176,11 @@ CmdPlot(w, cmd)
|
||||
if ((!ToolGetBox(&boxRootDef, &scx.scx_area)) ||
|
||||
(scx.scx_use->cu_def != boxRootDef))
|
||||
{
|
||||
TxError("The box and cursor must appear in the same window\n");
|
||||
TxError(" for plotting. The box indicates the area to\n");
|
||||
TxError(" plot, and the cursor's window tells which\n");
|
||||
TxError(" cells are expanded and unexpanded).\n");
|
||||
return;
|
||||
/* If no box is specified, then use the cell in the layout */
|
||||
/* window, and plot the entire cell using the cell bounding */
|
||||
/* box as the area to plot. */
|
||||
|
||||
scx.scx_area = scx.scx_use->cu_def->cd_bbox;
|
||||
}
|
||||
scx.scx_trans = GeoIdentityTransform;
|
||||
mask = crec->dbw_visibleLayers;
|
||||
|
||||
Reference in New Issue
Block a user