Skip to content

Commit 6cfa36a

Browse files
committed
contract on hetero flag.
1 parent 2165a3a commit 6cfa36a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/depict/src/main/java/org/openscience/cdk/depict/Abbreviations.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ else if (attachBond.getEnd().equals(atom))
444444
}
445445
}
446446

447+
if (!contractOnHetero)
448+
return newSgroups;
449+
447450
// now collapse
448451
for (IAtom attach : mol.atoms()) {
449452
if (usedAtoms.contains(attach))

0 commit comments

Comments
 (0)