Skip to content

Commit

Permalink
patch from 'sploid' to set correct bounding box for vertext markers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6566 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 11, 2007
1 parent 008bad8 commit 0064706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsvertexmarker.cpp
Expand Up @@ -77,8 +77,8 @@ void QgsVertexMarker::paint(QPainter* p)

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

void QgsVertexMarker::updatePosition()
Expand Down

0 comments on commit 0064706

Please sign in to comment.