From 4000dd758f99108d93ef87b20cb988bac2bf100b Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Mon, 2 May 2022 14:38:46 -0400 Subject: [PATCH] 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. --- commands/CmdCD.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/CmdCD.c b/commands/CmdCD.c index 85ce06fe..114aacb9 100644 --- a/commands/CmdCD.c +++ b/commands/CmdCD.c @@ -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" */