Fix incorrect comparison of the global length of passmark to minimal allowed value.

This commit is contained in:
Roman Telezhynskyi 2021-08-06 16:54:45 +03:00
parent c7db3de6d8
commit 785d72117d
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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.")