Skip to content

Commit 0064706

Browse files
author
timlinux
committed
patch from 'sploid' to set correct bounding box for vertext markers
git-svn-id: http://svn.osgeo.org/qgis/trunk@6566 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 008bad8 commit 0064706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/qgsvertexmarker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ void QgsVertexMarker::paint(QPainter* p)
7777

7878
QRectF QgsVertexMarker::boundingRect() const
7979
{
80-
qreal s = mIconSize / 2;
81-
return QRectF(-s,-s,s,s);
80+
qreal s = qreal(mIconSize + QPen(QColor(255,0,0)).width()) / 2.0;
81+
return QRectF(-s,-s,2.0*s,2.0*s);
8282
}
8383

8484
void QgsVertexMarker::updatePosition()

0 commit comments

Comments
 (0)