Result is not floating-point. Coverity scan.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2015-04-16 13:19:23 +03:00
parent ac862320f7
commit cc35816108

View File

@ -150,7 +150,7 @@ QPointF VToolCurveIntersectAxis::FindPoint(const QPointF &point, qreal angle,
const QSharedPointer<VAbstractCurve> &curve)
{
QRectF rec = QRectF(0, 0, INT_MAX, INT_MAX);
rec.translate(-INT_MAX/2, -INT_MAX/2);
rec.translate(static_cast<qreal>(-INT_MAX/2), static_cast<qreal>(-INT_MAX/2));
const QLineF axis = VGObject::BuildAxis(point, angle, rec);
QVector<QPointF> points = curve->IntersectLine(axis);