Copy paste mistake.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-28 21:31:21 +02:00
parent 40fc6bea54
commit 7611940c40

View File

@ -63,7 +63,7 @@ DialogNewMeasurements::~DialogNewMeasurements()
MeasurementsType DialogNewMeasurements::Type() const
{
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
return static_cast<Unit>(ui->comboBoxMType->itemData(ui->comboBoxMType->currentIndex()).toInt());
return static_cast<MeasurementsType>(ui->comboBoxMType->itemData(ui->comboBoxMType->currentIndex()).toInt());
#else
return static_cast<MeasurementsType>(ui->comboBoxMType->currentData().toInt());
#endif