Fix dialog Dimension label.

This commit is contained in:
Roman Telezhynskyi 2024-06-10 09:02:39 +03:00
parent 7c8691146c
commit 700b8d1901

View File

@ -189,22 +189,7 @@ void DialogDimensionLabels::InitTable()
//---------------------------------------------------------------------------------------------------------------------
auto DialogDimensionLabels::DimensionValue(const MeasurementDimension_p &dimension, qreal value) const -> QString
{
if (dimension->Type() == MeasurementDimension::X)
{
return QString::number(value);
}
if (dimension->Type() == MeasurementDimension::Y)
{
if (dimension->IsBodyMeasurement())
{
return QString::number(m_fullCircumference ? value * 2 : value);
}
return QString::number(value);
}
if (dimension->Type() == MeasurementDimension::W || dimension->Type() == MeasurementDimension::Z)
if (dimension->IsBodyMeasurement())
{
return QString::number(m_fullCircumference ? value * 2 : value);
}