Skip to content
Permalink
Browse files

Small fix to QgsDataDefined implicit sharing

  • Loading branch information
nyalldawson committed May 9, 2015
1 parent 65cd9fc commit 4a4877d349748922a774e5d958b27401f50010b8
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsdatadefined.cpp
@@ -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;
}

0 comments on commit 4a4877d

Please sign in to comment.
You can’t perform that action at this time.