Skip to content

Commit

Permalink
Small fix to QgsDataDefined implicit sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 9, 2015
1 parent 65cd9fc commit 4a4877d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/qgsdatadefined.cpp
Expand Up @@ -210,7 +210,10 @@ bool QgsDataDefined::expressionIsPrepared() const

QgsExpression *QgsDataDefined::expression()
{
d.detach();
//Ideally there should be a detach here, but that causes issues
//as detaching can create a new expression which will be unprepared
//TODO - revisit after QgsExpression is made implicitly shared
//d.detach();
return d->expression;
}

Expand Down

0 comments on commit 4a4877d

Please sign in to comment.