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/qgis@7998 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 17, 2008
1 parent 5964c60 commit a06e1f5
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 a06e1f5

Please sign in to comment.