Skip to content

Commit

Permalink
Fix cannot set line symbol data defined properties for vector
Browse files Browse the repository at this point in the history
field marker (refs #15131)
  • Loading branch information
nyalldawson committed Jun 26, 2016
1 parent 9c16a95 commit 6d6aa8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/symbology-ng/qgsvectorfieldsymbollayer.cpp
Expand Up @@ -283,7 +283,7 @@ void QgsVectorFieldSymbolLayer::drawPreviewIcon( QgsSymbolV2RenderContext& conte

QSet<QString> QgsVectorFieldSymbolLayer::usedAttributes() const
{
QSet<QString> attributes;
QSet<QString> attributes = QgsMarkerSymbolLayerV2::usedAttributes();
if ( !mXAttribute.isEmpty() )
{
attributes.insert( mXAttribute );
Expand All @@ -292,6 +292,10 @@ QSet<QString> QgsVectorFieldSymbolLayer::usedAttributes() const
{
attributes.insert( mYAttribute );
}
if ( mLineSymbol )
{
attributes.unite( mLineSymbol->usedAttributes() );
}
return attributes;
}

Expand Down

0 comments on commit 6d6aa8d

Please sign in to comment.