Corrected a problem caused by fixing the "select visible" command

with respect to visible/invisible labels and cells.  The change
inadvertently made the "select area" command option stop selecting
labels on the same type as the layers being selected.  This has
been fixed.
This commit is contained in:
R. Timothy Edwards 2026-05-26 17:01:45 -04:00
parent 1a16502a69
commit d8580be739
3 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
8.3.650
8.3.651

View File

@ -647,6 +647,9 @@ cmdSelectArea(
if (!(crec->dbw_flags & DBW_SEELABELS)) TTMaskClearType(&mask, L_LABEL);
if (!(crec->dbw_flags & DBW_SEECELLS)) TTMaskClearType(&mask, L_CELL);
}
else if (option == SEL_AREA)
TTMaskSetType(&mask, L_LABEL);
SelectArea(&scx, &mask, crec->dbw_bitmask, globmatch);
}

View File

@ -834,6 +834,8 @@ chunkdone:
if (DBIsContact(type))
TTMaskSetOnlyType(&typeMask, type);
/* Allow labels to be selected as part of the chunk */
TTMaskSetType(&typeMask, L_LABEL);
SelectArea(&newscx, &typeMask, xMask, NULL);
}