Skip to content

Commit 40f5c83

Browse files
committed
Seems to make sense, depict metals at as co-linear rather than bent.
1 parent 33a435e commit 40f5c83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tool/sdg/src/main/java/org/openscience/cdk/layout/AtomPlacer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import com.google.common.collect.FluentIterable;
2727
import org.openscience.cdk.CDKConstants;
28+
import org.openscience.cdk.config.Elements;
2829
import org.openscience.cdk.exception.CDKException;
2930
import org.openscience.cdk.geometry.BondTools;
3031
import org.openscience.cdk.geometry.GeometryUtil;
@@ -941,6 +942,10 @@ public int compare(Integer a, Integer b) {
941942
* -N=[N+]=N
942943
*/
943944
static boolean isColinear(IAtom atom, Iterable<IBond> bonds) {
945+
946+
if (Elements.isMetal(atom))
947+
return true;
948+
944949
int numSgl = atom.getImplicitHydrogenCount() == null ? 0 : atom.getImplicitHydrogenCount();
945950
int numDbl = 0;
946951
int numTpl = 0;

0 commit comments

Comments
 (0)