Fix dialog Dimension label.
This commit is contained in:
parent
7c8691146c
commit
700b8d1901
|
@ -189,25 +189,10 @@ void DialogDimensionLabels::InitTable()
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto DialogDimensionLabels::DimensionValue(const MeasurementDimension_p &dimension, qreal value) const -> QString
|
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())
|
if (dimension->IsBodyMeasurement())
|
||||||
{
|
{
|
||||||
return QString::number(m_fullCircumference ? value * 2 : value);
|
return QString::number(m_fullCircumference ? value * 2 : value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return QString::number(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dimension->Type() == MeasurementDimension::W || dimension->Type() == MeasurementDimension::Z)
|
|
||||||
{
|
|
||||||
return QString::number(m_fullCircumference ? value * 2 : value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return QString::number(value);
|
return QString::number(value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user