Skip to content

Commit e62804a

Browse files
committed
preserve atom coords from ALS atom
1 parent 57679c9 commit e62804a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

storage/ctab/src/main/java/org/openscience/cdk/io/MDLV2000Reader.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,11 @@ void readPropertiesFast(final BufferedReader input, final IAtomContainer contain
979979
QueryAtom ref = (QueryAtom)AtomRef.deref(atom);
980980
ref.setExpression(expr);
981981
} else {
982-
container.setAtom(index, new QueryAtom(expr));
982+
QueryAtom queryAtom = new QueryAtom(expr);
983+
//keep coordinates from old atom
984+
queryAtom.setPoint2d(atom.getPoint2d());
985+
queryAtom.setPoint3d(atom.getPoint3d());
986+
container.setAtom(index, queryAtom);
983987
}
984988
}
985989
break;

0 commit comments

Comments
 (0)