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:
Tim Edwards 2022-02-16 11:28:06 -05:00
parent 9086773d8c
commit f23aec37b9
3 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
8.3.267
8.3.268

View File

@ -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;
}

View File

@ -301,6 +301,7 @@ SelectFlat()
SelectUse);
DBCellCopyAllLabels(&scx, &DBAllTypeBits, CU_DESCEND_SPECIAL, SelectUse,
(Rect *)NULL);
DBReComputeBbox(SelectDef);
SelRememberForUndo(FALSE, SelectRootDef, &SelectUse->cu_bbox);