Modified the behavior of "select area subcell" so that it no longer
requires that subcells be unexpanded in order to select them. This seems to be more in line with what one would expect from the documented description of the "select area" command, and more in line with common-sense expectations.
This commit is contained in:
parent
cd80d38d52
commit
38b3d53b5f
|
|
@ -473,10 +473,15 @@ SelectArea(scx, types, xMask, globmatch)
|
|||
}
|
||||
else (void) DBCellCopyAllLabels(scx, types, xMask, SelectUse, &labelArea);
|
||||
|
||||
/* Select unexpanded cell uses. */
|
||||
/* Select cell uses. */
|
||||
/* NOTE: Changed 2/9/2025; Previously this was restricted to unexpanded
|
||||
* cell instances, which is an unnecessary restriction. By changing "xMask"
|
||||
* to "CU_DESCEND_ALL", this now only ever looks one level down and will
|
||||
* select any instance that is a child of the edit cell, expanded or not.
|
||||
*/
|
||||
|
||||
if (TTMaskHasType(types, L_CELL))
|
||||
(void) DBCellCopyAllCells(scx, xMask, SelectUse, &cellArea);
|
||||
(void) DBCellCopyAllCells(scx, CU_DESCEND_ALL, SelectUse, &cellArea);
|
||||
else
|
||||
{
|
||||
cellArea.r_xbot = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue