Skip to content

Commit

Permalink
Merge pull request #123 from OpenBioSim/fix_122
Browse files Browse the repository at this point in the history
Fix issue #122
  • Loading branch information
chryswoods authored Nov 7, 2023
2 parents 72b24cd + 4ee3a2d commit 4a1025e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corelib/src/libs/SireIO/biosimspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ namespace SireIO
// Copy across all properties that are unique to the original molecule.
for (const auto &prop : molecule.propertyKeys())
{
if (not water.hasProperty(prop) and not prop.compare("is_non_searchable_water"))
if (not water.hasProperty(prop) and prop.compare("is_non_searchable_water") != 0)
{
edit_mol = edit_mol.setProperty(prop, molecule.property(prop)).molecule();
}
Expand Down Expand Up @@ -493,7 +493,7 @@ namespace SireIO
// Copy across all properties that are unique to the original molecule.
for (const auto &prop : molecule.propertyKeys())
{
if (not water.hasProperty(prop) and not prop.compare("is_non_searchable_water"))
if (not water.hasProperty(prop) and prop.compare("is_non_searchable_water") != 0)
{
edit_mol = edit_mol.setProperty(prop, molecule.property(prop)).molecule();
}
Expand Down
3 changes: 3 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ organisation on `GitHub <https://github.com/openbiosim/sire>`__.
`2023.5.0 <https://github.com/openbiosim/sire/compare/2023.4.0...2023.5.0>`__ - December 2023
---------------------------------------------------------------------------------------------

* Fix use of ``QString::compare`` when comparing molecular properties during
a water topology swap.

* Added a new :mod:`sire.options` module that contains new
:cls:`sire.options.Option` objects to represent configurable options.
These include documentation, and make it easier to validate and expose
Expand Down

0 comments on commit 4a1025e

Please sign in to comment.