We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c44c595 commit 2d466b3Copy full SHA for 2d466b3
tool/sdg/src/main/java/org/openscience/cdk/layout/AtomPlacer.java
@@ -964,8 +964,9 @@ public int compare(Integer a, Integer b) {
964
*/
965
static boolean isColinear(IAtom atom, Iterable<IBond> bonds) {
966
967
- if (Elements.isMetal(atom))
968
- return true;
+ if (Elements.isMetal(atom)) {
+ return FluentIterable.from(bonds).size() == 2;
969
+ }
970
971
int numSgl = atom.getImplicitHydrogenCount() == null ? 0 : atom.getImplicitHydrogenCount();
972
int numDbl = 0;
0 commit comments