Skip to content

Commit

Permalink
Let single symbol render mark borders of areas when selected, just as…
Browse files Browse the repository at this point in the history
… the other renderers

git-svn-id: http://svn.osgeo.org/qgis/trunk@7998 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 17, 2008
1 parent d851d7c commit b58e7a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/renderer/qgssinglesymbolrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ void QgsSingleSymbolRenderer::renderFeature(QPainter * p, QgsFeature & f, QImage
{
QPen pen=mSymbol->pen();
pen.setWidthF ( widthScale * pen.width() );
if (mVectorType == QGis::Line)
pen.setColor(mSelectionColor);
// We set pen color in case it is an area with no brush (transparent).
// Previously, this was only done for lines. Why?
pen.setColor(mSelectionColor);
QBrush brush=mSymbol->brush();
brush.setColor(mSelectionColor);
p->setPen(pen);
Expand Down

0 comments on commit b58e7a7

Please sign in to comment.