Skip to content

Commit

Permalink
[vectortile] Fix mapbox gl convertor handling of fill-outline-color w…
Browse files Browse the repository at this point in the history
…hen fill-color is expression driven
  • Loading branch information
nirvn authored and nyalldawson committed Nov 19, 2021
1 parent bec5836 commit 8e46f2c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/core/vectortile/qgsmapboxglstyleconverter.cpp
Expand Up @@ -232,15 +232,12 @@ bool QgsMapBoxGlStyleConverter::parseFillLayer( const QVariantMap &jsonLayer, Qg
{
if ( !jsonPaint.contains( QStringLiteral( "fill-outline-color" ) ) )
{
// fill-outline-color
if ( fillColor.isValid() )
fillOutlineColor = fillColor;
else
{
// use fill color data defined property
if ( ddProperties.isActive( QgsSymbolLayer::PropertyFillColor ) )
ddProperties.setProperty( QgsSymbolLayer::PropertyStrokeColor, ddProperties.property( QgsSymbolLayer::PropertyFillColor ) );
}

// match fill color data defined property when active
if ( ddProperties.isActive( QgsSymbolLayer::PropertyFillColor ) )
ddProperties.setProperty( QgsSymbolLayer::PropertyStrokeColor, ddProperties.property( QgsSymbolLayer::PropertyFillColor ) );
}
else
{
Expand Down

0 comments on commit 8e46f2c

Please sign in to comment.