Don't use scaling factor for circle.
--HG-- branch : develop
This commit is contained in:
parent
44b3064290
commit
100857ab21
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user