Skip to content
Permalink
Browse files
Let single symbol render mark borders of areas when selected, just as…
… the other renderers

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7998 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 17, 2008
1 parent 5964c60 commit a06e1f5675114057b163fe23e33ad45bb7bdadca
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/renderer/qgssinglesymbolrenderer.cpp
@@ -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);

0 comments on commit a06e1f5

Please sign in to comment.