From bdd152dd8301dbabda854d158ce08199bc38207b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 12 May 2023 10:42:39 +0300 Subject: [PATCH] Fix build issues. --- qbs/modules/buildconfig/buildconfig.qbs | 1 + src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/qbs/modules/buildconfig/buildconfig.qbs b/qbs/modules/buildconfig/buildconfig.qbs index 357e9b1a5..3c1db29d5 100644 --- a/qbs/modules/buildconfig/buildconfig.qbs +++ b/qbs/modules/buildconfig/buildconfig.qbs @@ -711,6 +711,7 @@ Module { "-Wall", "-Wno-pragmas", "-Wno-error=strict-overflow", + "-Wno-strict-overflow", "-Wextra" ) diff --git a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp index af2ee550b..c02e2035c 100644 --- a/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/piece/dialogseamallowance.cpp @@ -1087,7 +1087,8 @@ void DialogSeamAllowance::NodeChanged(int index) const int nodeIndex = piece.GetPath().indexOfNode(uiTabPaths->comboBoxNodes->currentData().toUInt()); if (nodeIndex != -1) { - const VPieceNode &node = piece.GetPath().at(nodeIndex); + const VPiecePath &path = piece.GetPath(); + const VPieceNode &node = path.at(nodeIndex); // Seam alowance before uiTabPaths->plainTextEditFormulaWidthBefore->setEnabled(true); @@ -1192,7 +1193,8 @@ void DialogSeamAllowance::PassmarkChanged(int index) return; } - const VPieceNode &node = piece.GetPath().at(nodeIndex); + const VPiecePath &path = piece.GetPath(); + const VPieceNode &node = path.at(nodeIndex); InitPassmarkLengthFormula(node); InitPassmarkWidthFormula(node);