Fix dialog Dimension label.
This commit is contained in:
parent
7c8691146c
commit
700b8d1901
|
@ -189,22 +189,7 @@ 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)
|
if (dimension->IsBodyMeasurement())
|
||||||
{
|
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
return QString::number(m_fullCircumference ? value * 2 : value);
|
return QString::number(m_fullCircumference ? value * 2 : value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user