Fix dialog Dimension label.
This commit is contained in:
parent
7c8691146c
commit
700b8d1901
|
@ -188,13 +188,6 @@ 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())
|
||||
{
|
||||
|
@ -203,11 +196,3 @@ auto DialogDimensionLabels::DimensionValue(const MeasurementDimension_p &dimensi
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user