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(); } //---------------------------------------------------------------------------------------------------------------------