Fix warning while segmenting flipped arc.
This commit is contained in:
parent
2e0f9c2a53
commit
92398bbf52
|
@ -7,6 +7,7 @@
|
||||||
- Tape app. Fix crash after switching language.
|
- Tape app. Fix crash after switching language.
|
||||||
- Fix Valentina app crash after canceling a tool.
|
- Fix Valentina app crash after canceling a tool.
|
||||||
- Puzzle app. Fix reading a piece name.
|
- Puzzle app. Fix reading a piece name.
|
||||||
|
- Fix warning while segmenting flipped arc.
|
||||||
|
|
||||||
# Valentina 0.7.51 April 18, 2022
|
# Valentina 0.7.51 April 18, 2022
|
||||||
- Z value change for a layout piece.
|
- Z value change for a layout piece.
|
||||||
|
|
|
@ -515,7 +515,7 @@ auto VArc::CutPointFlipped(qreal length, qreal fullLength, const QString &pointN
|
||||||
const qreal minLength = fullLength + ToPixel(1, Unit::Mm);
|
const qreal minLength = fullLength + ToPixel(1, Unit::Mm);
|
||||||
const qreal maxLength = ToPixel(-1, Unit::Mm);
|
const qreal maxLength = ToPixel(-1, Unit::Mm);
|
||||||
|
|
||||||
if (length > minLength)
|
if (length < minLength)
|
||||||
{
|
{
|
||||||
QString errorMsg;
|
QString errorMsg;
|
||||||
if (not pointName.isEmpty())
|
if (not pointName.isEmpty())
|
||||||
|
@ -531,7 +531,7 @@ auto VArc::CutPointFlipped(qreal length, qreal fullLength, const QString &pointN
|
||||||
VAbstractApplication::VApp()->IsPedantic() ? throw VException(errorMsg) :
|
VAbstractApplication::VApp()->IsPedantic() ? throw VException(errorMsg) :
|
||||||
qWarning() << VAbstractApplication::warningMessageSignature + errorMsg;
|
qWarning() << VAbstractApplication::warningMessageSignature + errorMsg;
|
||||||
}
|
}
|
||||||
else if (length < maxLength)
|
else if (length > maxLength)
|
||||||
{
|
{
|
||||||
QString errorMsg;
|
QString errorMsg;
|
||||||
if (not pointName.isEmpty())
|
if (not pointName.isEmpty())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user