mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
aaf86d7b66
commit
cc66910746
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user