mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected the "select flat" command, which failed to recompute the
selection bounding box, causing all following commands to fail to handle anything in the selection outside of the unit area (0, 0) to (1, 1).
This commit is contained in:
+2
-2
@@ -654,7 +654,7 @@ selEnumCFunc1(scx, arg)
|
||||
(void) DBCellSrArea(&scx2, selEnumCFunc2, (ClientData) arg);
|
||||
if (arg->sea_foundUse == NULL)
|
||||
{
|
||||
TxError("Internal error: couldn't find selected cell %s.\n",
|
||||
TxError("The selected cell %s is not in the layout.\n",
|
||||
arg->sea_use->cu_id);
|
||||
return 2;
|
||||
}
|
||||
@@ -816,7 +816,7 @@ SelEnumLabels(layers, editOnly, foundNonEdit, func, clientData)
|
||||
TF_LABEL_ATTACH, selEnumLFunc2, (ClientData) &arg);
|
||||
if (arg.sea_foundLabel == NULL)
|
||||
{
|
||||
TxError("Internal error: couldn't find selected label %s.\n",
|
||||
TxError("The selected label %s is not in the layout.\n",
|
||||
selLabel->lab_text);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -301,6 +301,7 @@ SelectFlat()
|
||||
SelectUse);
|
||||
DBCellCopyAllLabels(&scx, &DBAllTypeBits, CU_DESCEND_SPECIAL, SelectUse,
|
||||
(Rect *)NULL);
|
||||
DBReComputeBbox(SelectDef);
|
||||
|
||||
SelRememberForUndo(FALSE, SelectRootDef, &SelectUse->cu_bbox);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user