Fix finding point of intersection curve and axis.
Add case where the axis's point lies on the curve.
This commit is contained in:
parent
a6d9194051
commit
8ffc2447dd
|
@ -5,6 +5,7 @@
|
||||||
- Fix regression. Set default value for detail labels size and grainline length to 10 cm.
|
- Fix regression. Set default value for detail labels size and grainline length to 10 cm.
|
||||||
- [smart-pattern/valentina#136] 2 decimals for entering values in multi measurements tables.
|
- [smart-pattern/valentina#136] 2 decimals for entering values in multi measurements tables.
|
||||||
- New warnings. Warn a user about incorrect cut curve segment length.
|
- New warnings. Warn a user about incorrect cut curve segment length.
|
||||||
|
- Fix finding point of intersection curve and axis. Case when the axis's point lies on the curve.
|
||||||
|
|
||||||
# Valentina 0.7.49 July 1, 2021
|
# Valentina 0.7.49 July 1, 2021
|
||||||
- Fix crash.
|
- Fix crash.
|
||||||
|
|
|
@ -464,6 +464,12 @@ bool VAbstractCurve::CurveIntersectAxis(const QPointF &point, qreal angle, const
|
||||||
{
|
{
|
||||||
SCASSERT(intersectionPoint != nullptr)
|
SCASSERT(intersectionPoint != nullptr)
|
||||||
|
|
||||||
|
if (VAbstractCurve::IsPointOnCurve(curvePoints, point))
|
||||||
|
{
|
||||||
|
*intersectionPoint = point;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Normalize an angle
|
// Normalize an angle
|
||||||
{
|
{
|
||||||
QLineF line(QPointF(10,10), QPointF(100, 10));
|
QLineF line(QPointF(10,10), QPointF(100, 10));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user