Result is not floating-point. Coverity scan.
--HG-- branch : release
This commit is contained in:
parent
ac862320f7
commit
cc35816108
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user