Skip to content

Commit

Permalink
Fix transparency for data defined color in ellipse marker
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 19, 2018
1 parent 6a84baf commit bc6c940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
Expand Up @@ -246,7 +246,7 @@ void QgsEllipseSymbolLayerV2::renderPoint( QPointF point, QgsSymbolV2RenderConte
QColor fillColor = QgsSymbolLayerV2Utils::decodeColor( colorString );
if ( context.alpha() < 1.0 )
{
fillColor.setAlpha( fillColor.alphaF() * context.alpha() );
fillColor.setAlphaF( fillColor.alphaF() * context.alpha() );
}
mBrush.setColor( fillColor );
}
Expand All @@ -260,7 +260,7 @@ void QgsEllipseSymbolLayerV2::renderPoint( QPointF point, QgsSymbolV2RenderConte
QColor outlineColor = QgsSymbolLayerV2Utils::decodeColor( colorString );
if ( context.alpha() < 1.0 )
{
outlineColor.setAlpha( outlineColor.alphaF() * context.alpha() );
outlineColor.setAlphaF( outlineColor.alphaF() * context.alpha() );
}
mPen.setColor( outlineColor );
}
Expand Down

0 comments on commit bc6c940

Please sign in to comment.