Skip to content

Commit c1d2798

Browse files
committedNov 25, 2013
Ellipse marker support for color expressions (Fix #9114)
1 parent f665ddc commit c1d2798

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
@@ -195,12 +195,12 @@ void QgsEllipseSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Rend
195195
if ( fillColorExpression )
196196
{
197197
QString colorString = fillColorExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString();
198-
mBrush.setColor( QColor( colorString ) );
198+
mBrush.setColor( QColor( QgsSymbolLayerV2Utils::decodeColor( colorString ) ) );
199199
}
200200
if ( outlineColorExpression )
201201
{
202202
QString colorString = outlineColorExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString();
203-
mPen.setColor( QColor( colorString ) );
203+
mPen.setColor( QColor( QgsSymbolLayerV2Utils::decodeColor( colorString ) ) );
204204
}
205205
if ( widthExpression || heightExpression || symbolNameExpression )
206206
{

0 commit comments

Comments
 (0)
Please sign in to comment.