Made a correction to the command option "contact erase" which was

not properly handling stacked contacts, failing to erase a contact
out of the middle of a stack.
This commit is contained in:
Tim Edwards 2022-05-02 14:38:46 -04:00
parent fcc884332b
commit 4000dd758f
1 changed files with 2 additions and 2 deletions

View File

@ -2292,8 +2292,8 @@ CmdContact(w, cmd)
for (ctype = DBNumUserLayers; ctype < DBNumTypes; ctype++)
{
rmask = DBResidueMask(ctype);
if (TTMaskHasType(rmask, ctype))
TTMaskSetMask(&smask, rmask);
if (TTMaskHasType(rmask, type))
TTMaskSetType(&smask, ctype);
}
/* Enumerate all tiles inside the box area containing contact "type" */