Skip to content

Commit 242586e

Browse files
committed
Fix reading mass difference field.
1 parent fcb2f6c commit 242586e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private IAtomContainer readMolecule(IAtomContainer molecule) throws CDKException
449449
int massDiff = Integer.parseInt(massDiffString);
450450
if (massDiff != 0) {
451451
IIsotope major = Isotopes.getInstance().getMajorIsotope(element);
452-
atom.setAtomicNumber(major.getAtomicNumber() + massDiff);
452+
atom.setMassNumber(major.getMassNumber() + massDiff);
453453
}
454454
} catch (NumberFormatException | IOException exception) {
455455
logger.error("Could not parse mass difference field");

0 commit comments

Comments
 (0)