Skip to content
Permalink
Browse files

Fix cannot set line symbol data defined properties for vector

field marker (refs #15131)

(cherry-picked from 6d6aa8d)
  • Loading branch information
nyalldawson committed Jul 1, 2016
1 parent 8bd4558 commit 7e85d294f477b1dde211ecb08f090667a68efe7e
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/symbology-ng/qgsvectorfieldsymbollayer.cpp
@@ -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 );
@@ -292,6 +292,10 @@ QSet<QString> QgsVectorFieldSymbolLayer::usedAttributes() const
{
attributes.insert( mYAttribute );
}
if ( mLineSymbol )
{
attributes.unite( mLineSymbol->usedAttributes() );
}
return attributes;
}

0 comments on commit 7e85d29

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