mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Don't reset computed properties if already empty (#7188)
This commit is contained in:
@@ -148,7 +148,7 @@ class RDProps {
|
||||
//! clears all of our \c computed \c properties
|
||||
void clearComputedProps() const {
|
||||
STR_VECT compLst;
|
||||
if (getPropIfPresent(RDKit::detail::computedPropName, compLst)) {
|
||||
if (getPropIfPresent(RDKit::detail::computedPropName, compLst) && !compLst.empty()) {
|
||||
for (const auto &sv : compLst) {
|
||||
d_props.clearVal(sv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user