Fix build issues.

This commit is contained in:
Roman Telezhynskyi 2023-05-12 10:42:39 +03:00
parent c704321d5a
commit bdd152dd83
2 changed files with 5 additions and 2 deletions

View File

@ -711,6 +711,7 @@ Module {
"-Wall", "-Wall",
"-Wno-pragmas", "-Wno-pragmas",
"-Wno-error=strict-overflow", "-Wno-error=strict-overflow",
"-Wno-strict-overflow",
"-Wextra" "-Wextra"
) )

View File

@ -1087,7 +1087,8 @@ void DialogSeamAllowance::NodeChanged(int index)
const int nodeIndex = piece.GetPath().indexOfNode(uiTabPaths->comboBoxNodes->currentData().toUInt()); const int nodeIndex = piece.GetPath().indexOfNode(uiTabPaths->comboBoxNodes->currentData().toUInt());
if (nodeIndex != -1) if (nodeIndex != -1)
{ {
const VPieceNode &node = piece.GetPath().at(nodeIndex); const VPiecePath &path = piece.GetPath();
const VPieceNode &node = path.at(nodeIndex);
// Seam alowance before // Seam alowance before
uiTabPaths->plainTextEditFormulaWidthBefore->setEnabled(true); uiTabPaths->plainTextEditFormulaWidthBefore->setEnabled(true);
@ -1192,7 +1193,8 @@ void DialogSeamAllowance::PassmarkChanged(int index)
return; return;
} }
const VPieceNode &node = piece.GetPath().at(nodeIndex); const VPiecePath &path = piece.GetPath();
const VPieceNode &node = path.at(nodeIndex);
InitPassmarkLengthFormula(node); InitPassmarkLengthFormula(node);
InitPassmarkWidthFormula(node); InitPassmarkWidthFormula(node);