Fix incorrect comparison of the global length of passmark to minimal allowed value.
This commit is contained in:
parent
c7db3de6d8
commit
785d72117d
|
@ -8,6 +8,7 @@
|
|||
- Fix finding point of intersection curve and axis. Case when the axis's point lies on the curve.
|
||||
- Fix visualization for tool point of intersection line and axis. Case when the axis's point lies on the line.
|
||||
- Table of variables is available in Details mode.
|
||||
- Fix incorrect comparison of the global length of passmark to minimal allowed value.
|
||||
|
||||
# Valentina 0.7.49 July 1, 2021
|
||||
- Fix crash.
|
||||
|
|
|
@ -1187,7 +1187,7 @@ auto VPiece::GlobalPassmarkLength(const VContainer *data) const -> qreal
|
|||
QSharedPointer<VInternalVariable> var = data->GetVariable<VInternalVariable>(passmarkLengthVariable);
|
||||
length = *var->GetValue();
|
||||
|
||||
if (length <= accuracyPointOnLine)
|
||||
if (VAbstractValApplication::VApp()->toPixel(length) <= accuracyPointOnLine)
|
||||
{
|
||||
const QString errorMsg = QObject::tr("Invalid global value for a passmark length. Piece '%1'. Length is "
|
||||
"less than minimal allowed.")
|
||||
|
|
Loading…
Reference in New Issue
Block a user