Skip to content

Commit bc6c940

Browse files
committedJun 19, 2018
Fix transparency for data defined color in ellipse marker
1 parent 6a84baf commit bc6c940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/symbology-ng/qgsellipsesymbollayerv2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void QgsEllipseSymbolLayerV2::renderPoint( QPointF point, QgsSymbolV2RenderConte
246246
QColor fillColor = QgsSymbolLayerV2Utils::decodeColor( colorString );
247247
if ( context.alpha() < 1.0 )
248248
{
249-
fillColor.setAlpha( fillColor.alphaF() * context.alpha() );
249+
fillColor.setAlphaF( fillColor.alphaF() * context.alpha() );
250250
}
251251
mBrush.setColor( fillColor );
252252
}
@@ -260,7 +260,7 @@ void QgsEllipseSymbolLayerV2::renderPoint( QPointF point, QgsSymbolV2RenderConte
260260
QColor outlineColor = QgsSymbolLayerV2Utils::decodeColor( colorString );
261261
if ( context.alpha() < 1.0 )
262262
{
263-
outlineColor.setAlpha( outlineColor.alphaF() * context.alpha() );
263+
outlineColor.setAlphaF( outlineColor.alphaF() * context.alpha() );
264264
}
265265
mPen.setColor( outlineColor );
266266
}

0 commit comments

Comments
 (0)
Please sign in to comment.