patch from 'sploid' to set correct bounding box for vertext markers

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6566 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2007-02-11 14:47:15 +00:00
parent aaf86d7b66
commit cc66910746

View File

@ -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()