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@7998 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 17, 2008
1 parent d851d7c commit b58e7a7f57d571d4b06d6d4ec10fea4ba3bda4f2
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 b58e7a7

Please sign in to comment.