Skip to content

Commit b58e7a7

Browse files
author
homann
committedJan 17, 2008
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
1 parent d851d7c commit b58e7a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/renderer/qgssinglesymbolrenderer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ void QgsSingleSymbolRenderer::renderFeature(QPainter * p, QgsFeature & f, QImage
132132
{
133133
QPen pen=mSymbol->pen();
134134
pen.setWidthF ( widthScale * pen.width() );
135-
if (mVectorType == QGis::Line)
136-
pen.setColor(mSelectionColor);
135+
// We set pen color in case it is an area with no brush (transparent).
136+
// Previously, this was only done for lines. Why?
137+
pen.setColor(mSelectionColor);
137138
QBrush brush=mSymbol->brush();
138139
brush.setColor(mSelectionColor);
139140
p->setPen(pen);

0 commit comments

Comments
 (0)
Please sign in to comment.