Skip to content

Commit

Permalink
Write x and y, not x and x (#2596)
Browse files Browse the repository at this point in the history
Co-authored-by: Magnus Rahm <magnus@compulartech.com>
  • Loading branch information
magnusrahm and magnusrahm committed Jul 14, 2023
1 parent 2b211d6 commit cb52875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formats/json/pubchemjsonformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ class PubChemJSONFormat : public OBMoleculeFormat
// Coordinates
// TODO: An option to round coordinates to n decimal places?
xcoords.PushBack(rapidjson::Value(patom->GetX()).Move(), al);
ycoords.PushBack(rapidjson::Value(patom->GetX()).Move(), al);
ycoords.PushBack(rapidjson::Value(patom->GetY()).Move(), al);
if (pmol->GetDimension() == 3) {
zcoords.PushBack(rapidjson::Value(patom->GetZ()).Move(), al);
}
Expand Down

0 comments on commit cb52875

Please sign in to comment.