From 94cfe7c5d3a4295b32f31eb3b62cb6cfed5ac867 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 22 Jun 2016 21:14:00 +0300 Subject: [PATCH] Fixed error in Tape app. Editing values of standard table was incorrect. (grafted from 416f3dddecb4d54024cc412cde89013d8f5cc1a6) --HG-- branch : release --- 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 d106164aa..41d8ed791 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1271,9 +1271,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); @@ -1535,6 +1535,8 @@ void TMainWindow::SaveMBaseValue(double value) ui->tableWidget->blockSignals(true); ui->tableWidget->selectRow(row); ui->tableWidget->blockSignals(false); + + ShowMData(); } //--------------------------------------------------------------------------------------------------------------------- @@ -1574,6 +1576,8 @@ void TMainWindow::SaveMSizeIncrease(double value) ui->tableWidget->blockSignals(true); ui->tableWidget->selectRow(row); ui->tableWidget->blockSignals(false); + + ShowMData(); } //--------------------------------------------------------------------------------------------------------------------- @@ -1613,6 +1617,8 @@ void TMainWindow::SaveMHeightIncrease(double value) ui->tableWidget->blockSignals(true); ui->tableWidget->selectRow(row); ui->tableWidget->blockSignals(false); + + ShowMData(); } //---------------------------------------------------------------------------------------------------------------------