Skip to content
Permalink
Browse files

Fix transparency for data defined color in ellipse marker

  • Loading branch information
mhugent committed Jun 19, 2018
1 parent 6a84baf commit bc6c940339a3bb641cfe1d7a4acf7e6ae5328d5c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
@@ -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 );
}
@@ -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 );
}

0 comments on commit bc6c940

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