Skip to content

Commit

Permalink
addresses #47127
Browse files Browse the repository at this point in the history
calling QgsProperty::setExpressionString with empty string
deactivates the QgsProperty (isActive() == False)
  • Loading branch information
jakimowb authored and nyalldawson committed Feb 3, 2022
1 parent 68f7dff commit 1640a50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsproperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ void QgsProperty::setExpressionString( const QString &expression )
d->expression = QgsExpression( expression );
d->expressionPrepared = false;
d->expressionIsInvalid = false;
if (d->expressionString.isEmpty())
d->active = false;
}

QString QgsProperty::expressionString() const
Expand Down

0 comments on commit 1640a50

Please sign in to comment.