From f23aec37b9527725767372202999896d0a6ae090 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 16 Feb 2022 11:28:06 -0500 Subject: [PATCH] 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). --- VERSION | 2 +- select/selEnum.c | 4 ++-- select/selOps.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 244604e7..5b289975 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.267 +8.3.268 diff --git a/select/selEnum.c b/select/selEnum.c index 05c31a16..7088e266 100644 --- a/select/selEnum.c +++ b/select/selEnum.c @@ -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; } diff --git a/select/selOps.c b/select/selOps.c index 6774745e..824899bc 100644 --- a/select/selOps.c +++ b/select/selOps.c @@ -301,6 +301,7 @@ SelectFlat() SelectUse); DBCellCopyAllLabels(&scx, &DBAllTypeBits, CU_DESCEND_SPECIAL, SelectUse, (Rect *)NULL); + DBReComputeBbox(SelectDef); SelRememberForUndo(FALSE, SelectRootDef, &SelectUse->cu_bbox);