Skip to content

Commit

Permalink
Fix issue with last Hall number (off-by-one error)
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Oct 17, 2023
1 parent 5b0a8b7 commit 91c5c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avogadro/core/spacegroups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SpaceGroups::~SpaceGroups() {}
unsigned short SpaceGroups::hallNumber(const std::string& spaceGroup)
{
unsigned short hall = 0; // can't find anything
const unsigned short hall_count = 530;
const unsigned short hall_count = 531; // 530 but first one is empty
// some files use " instead of = for the space group symbol
std::string sg = spaceGroup;
std::replace(sg.begin(), sg.end(), '"', '=');
Expand Down

0 comments on commit 91c5c95

Please sign in to comment.