File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tool/sdg/src/main/java/org/openscience/cdk/layout Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2525
2626import com .google .common .collect .FluentIterable ;
2727import org .openscience .cdk .CDKConstants ;
28+ import org .openscience .cdk .config .Elements ;
2829import org .openscience .cdk .exception .CDKException ;
2930import org .openscience .cdk .geometry .BondTools ;
3031import 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 ;
You can’t perform that action at this time.
0 commit comments