Result is not floating-point. Coverity scan.
--HG-- branch : develop
This commit is contained in:
parent
e1e4804503
commit
0c83c86e27
|
@ -150,7 +150,7 @@ QPointF VToolCurveIntersectAxis::FindPoint(const QPointF &point, qreal angle,
|
||||||
const QSharedPointer<VAbstractCurve> &curve)
|
const QSharedPointer<VAbstractCurve> &curve)
|
||||||
{
|
{
|
||||||
QRectF rec = QRectF(0, 0, INT_MAX, INT_MAX);
|
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);
|
const QLineF axis = VGObject::BuildAxis(point, angle, rec);
|
||||||
QVector<QPointF> points = curve->IntersectLine(axis);
|
QVector<QPointF> points = curve->IntersectLine(axis);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user