Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 6 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Development was migrated into the
`OpenBioSim <https://github.com/openbiosim>`__
organisation on `GitHub <https://github.com/openbiosim/sire>`__.

`2023.4.2 <https://github.com/openbiosim/sire/compare/2023.4.1...2023.4.2>`__
------------------------------------------------------------------------------

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

`2023.4.1 <https://github.com/openbiosim/sire/compare/2023.4.0...2023.4.1>`__ - October 2023
---------------------------------------------------------------------------------------------

Expand Down