diff --git a/src/app/valentina/dialogs/dialogfinalmeasurements.cpp b/src/app/valentina/dialogs/dialogfinalmeasurements.cpp index a2edafc6c..c61d048f4 100644 --- a/src/app/valentina/dialogs/dialogfinalmeasurements.cpp +++ b/src/app/valentina/dialogs/dialogfinalmeasurements.cpp @@ -307,11 +307,17 @@ void DialogFinalMeasurements::MoveUp() return; } +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wstrict-overflow") + #if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) Move(m_measurements, row, row-1); #else m_measurements.move(row, row-1); #endif + +QT_WARNING_POP + UpdateTree(); ui->tableWidget->selectRow(row-1); @@ -327,11 +333,17 @@ void DialogFinalMeasurements::MoveDown() return; } +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wstrict-overflow") + #if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) Move(m_measurements, row, row+1); #else m_measurements.move(row, row+1); #endif + +QT_WARNING_POP + UpdateTree(); ui->tableWidget->selectRow(row+1);