Skip to content

Commit 4a4877d

Browse files
committedMay 9, 2015
Small fix to QgsDataDefined implicit sharing
1 parent 65cd9fc commit 4a4877d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/core/qgsdatadefined.cpp‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ bool QgsDataDefined::expressionIsPrepared() const
210210

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

0 commit comments

Comments
 (0)
Please sign in to comment.