Skip to content

Commit 6d6aa8d

Browse files
committed
Fix cannot set line symbol data defined properties for vector
field marker (refs #15131)
1 parent 9c16a95 commit 6d6aa8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/symbology-ng/qgsvectorfieldsymbollayer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void QgsVectorFieldSymbolLayer::drawPreviewIcon( QgsSymbolV2RenderContext& conte
283283

284284
QSet<QString> QgsVectorFieldSymbolLayer::usedAttributes() const
285285
{
286-
QSet<QString> attributes;
286+
QSet<QString> attributes = QgsMarkerSymbolLayerV2::usedAttributes();
287287
if ( !mXAttribute.isEmpty() )
288288
{
289289
attributes.insert( mXAttribute );
@@ -292,6 +292,10 @@ QSet<QString> QgsVectorFieldSymbolLayer::usedAttributes() const
292292
{
293293
attributes.insert( mYAttribute );
294294
}
295+
if ( mLineSymbol )
296+
{
297+
attributes.unite( mLineSymbol->usedAttributes() );
298+
}
295299
return attributes;
296300
}
297301

0 commit comments

Comments
 (0)