diff --git a/src/libs/vpatterndb/variables/vmeasurement.cpp b/src/libs/vpatterndb/variables/vmeasurement.cpp index 51a714fac..a60e0a78a 100644 --- a/src/libs/vpatterndb/variables/vmeasurement.cpp +++ b/src/libs/vpatterndb/variables/vmeasurement.cpp @@ -223,7 +223,18 @@ bool VMeasurement::IsGradationHeightValid(const QString &height) //--------------------------------------------------------------------------------------------------------------------- QString VMeasurement::CorrectionHash(qreal baseA, qreal baseB, qreal baseC) { - return QStringList({QString::number(baseA), QString::number(baseB), QString::number(baseC)}).join(';'); + QStringList hashBlocks{QString::number(baseA)}; + + if (baseB > 0) + { + hashBlocks.append(QString::number(baseB)); + } + + if (baseC > 0) + { + hashBlocks.append(QString::number(baseC)); + } + return hashBlocks.join(';'); } //---------------------------------------------------------------------------------------------------------------------