Skip to content

Commit

Permalink
[symbology] Fix stroke-only ellipse markers not reflecting selected s…
Browse files Browse the repository at this point in the history
…tate
  • Loading branch information
nirvn committed Mar 18, 2021
1 parent 6d64fab commit e87b1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgsellipsesymbollayer.cpp
Expand Up @@ -368,7 +368,7 @@ void QgsEllipseSymbolLayer::startRender( QgsSymbolRenderContext &context )
selPenColor.setAlphaF( context.opacity() );
}
mSelBrush = QBrush( selBrushColor );
mSelPen = QPen( selPenColor );
mSelPen = QPen( !shapeIsFilled( mSymbolName ) ? selBrushColor : selPenColor );
mSelPen.setStyle( mStrokeStyle );
mSelPen.setWidthF( context.renderContext().convertToPainterUnits( mStrokeWidth, mStrokeWidthUnit, mStrokeWidthMapUnitScale ) );
}
Expand Down

0 comments on commit e87b1ac

Please sign in to comment.