We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb2f6c commit 242586eCopy full SHA for 242586e
storage/ctab/src/main/java/org/openscience/cdk/io/MDLReader.java
@@ -449,7 +449,7 @@ private IAtomContainer readMolecule(IAtomContainer molecule) throws CDKException
449
int massDiff = Integer.parseInt(massDiffString);
450
if (massDiff != 0) {
451
IIsotope major = Isotopes.getInstance().getMajorIsotope(element);
452
- atom.setAtomicNumber(major.getAtomicNumber() + massDiff);
+ atom.setMassNumber(major.getMassNumber() + massDiff);
453
}
454
} catch (NumberFormatException | IOException exception) {
455
logger.error("Could not parse mass difference field");
0 commit comments