Skip to content

Commit

Permalink
Fix loading of QgsDataDefined from XML (fixes #14177)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 28, 2016
1 parent 4dd76da commit 5d46641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgsdatadefined.cpp
Expand Up @@ -330,7 +330,9 @@ bool QgsDataDefined::setFromXmlElement( const QDomElement &element )
d->active = element.attribute( "active" ).compare( "true", Qt::CaseInsensitive ) == 0;
d->useExpression = element.attribute( "useExpr" ).compare( "true", Qt::CaseInsensitive ) == 0;
d->field = element.attribute( "field" );
setExpressionString( element.attribute( "expr" ) );
d->expressionString = element.attribute( "expr" );
d->expressionPrepared = false;
d->exprRefColumns.clear();
return true;
}

Expand Down

0 comments on commit 5d46641

Please sign in to comment.