Fix warning while segmenting flipped arc.

This commit is contained in:
Roman Telezhynskyi 2022-06-28 12:55:27 +03:00
parent 2e0f9c2a53
commit 92398bbf52
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@
- Tape app. Fix crash after switching language.
- Fix Valentina app crash after canceling a tool.
- Puzzle app. Fix reading a piece name.
- Fix warning while segmenting flipped arc.
# Valentina 0.7.51 April 18, 2022
- Z value change for a layout piece.

View file

@ -515,7 +515,7 @@ auto VArc::CutPointFlipped(qreal length, qreal fullLength, const QString &pointN
const qreal minLength = fullLength + ToPixel(1, Unit::Mm);
const qreal maxLength = ToPixel(-1, Unit::Mm);
if (length > minLength)
if (length < minLength)
{
QString errorMsg;
if (not pointName.isEmpty())
@ -531,7 +531,7 @@ auto VArc::CutPointFlipped(qreal length, qreal fullLength, const QString &pointN
VAbstractApplication::VApp()->IsPedantic() ? throw VException(errorMsg) :
qWarning() << VAbstractApplication::warningMessageSignature + errorMsg;
}
else if (length < maxLength)
else if (length > maxLength)
{
QString errorMsg;
if (not pointName.isEmpty())