From 94a2de1f759dbce189053b9f98b987320a1b6722 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 22 Jun 2016 21:07:06 +0300 Subject: [PATCH] Fixed error in Tape app. Editing values of standard table was incorrect. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 1c7de5cff..98f83986a 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1346,9 +1346,9 @@ void TMainWindow::ShowMData() const qreal value = UnitConvertor(data->GetTableValue(meash->GetName(), mType), mUnit, pUnit); ui->labelCalculatedValue->setText(qApp->LocaleToString(value) + " " +postfix); - ui->doubleSpinBoxBaseValue->setValue(static_cast(meash->GetBase())); - ui->doubleSpinBoxInSizes->setValue(static_cast(meash->GetKsize())); - ui->doubleSpinBoxInHeights->setValue(static_cast(meash->GetKheight())); + ui->doubleSpinBoxBaseValue->setValue(meash->GetBase()); + ui->doubleSpinBoxInSizes->setValue(meash->GetKsize()); + ui->doubleSpinBoxInHeights->setValue(meash->GetKheight()); ui->labelCalculatedValue->blockSignals(false); ui->doubleSpinBoxBaseValue->blockSignals(false); @@ -1610,6 +1610,8 @@ void TMainWindow::SaveMBaseValue(double value) ui->tableWidget->blockSignals(true); ui->tableWidget->selectRow(row); ui->tableWidget->blockSignals(false); + + ShowMData(); } //--------------------------------------------------------------------------------------------------------------------- @@ -1649,6 +1651,8 @@ void TMainWindow::SaveMSizeIncrease(double value) ui->tableWidget->blockSignals(true); ui->tableWidget->selectRow(row); ui->tableWidget->blockSignals(false); + + ShowMData(); } //--------------------------------------------------------------------------------------------------------------------- @@ -1688,6 +1692,8 @@ void TMainWindow::SaveMHeightIncrease(double value) ui->tableWidget->blockSignals(true); ui->tableWidget->selectRow(row); ui->tableWidget->blockSignals(false); + + ShowMData(); } //---------------------------------------------------------------------------------------------------------------------