[Qgis-developer] Patch for qgsvertexmarker
sploid
sploid at yandex.ru
Thu Feb 8 05:16:41 EST 2007
Index: src/gui/qgsvertexmarker.cpp
===================================================================
--- src/gui/qgsvertexmarker.cpp (revision 6522)
+++ src/gui/qgsvertexmarker.cpp (working copy)
@@ -77,8 +77,8 @@
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()
More information about the Qgis-developer
mailing list