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:
parent
9086773d8c
commit
f23aec37b9
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue