Don't use scaling factor for circle.

--HG--
branch : develop
This commit is contained in:
dismine 2014-12-25 16:06:50 +02:00
parent 44b3064290
commit 100857ab21

View File

@ -117,7 +117,7 @@ QGraphicsEllipseItem *Visualization::InitPoint(const QColor &color, QGraphicsIte
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
QRectF Visualization::PointRect(const qreal &radius) const QRectF Visualization::PointRect(const qreal &radius) const
{ {
QRectF rec = QRectF(0, 0, radius*2/factor, radius*2/factor); QRectF rec = QRectF(0, 0, radius*2, radius*2);
rec.translate(-rec.center().x(), -rec.center().y()); rec.translate(-rec.center().x(), -rec.center().y());
return rec; return rec;
} }