From 7f1bab1ac69eda2723a86091e61a982c47d9349e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 24 Nov 2016 21:31:27 +0200 Subject: [PATCH] Fix typo. --HG-- branch : feature --- src/libs/vmisc/def.h | 2 +- src/libs/vtools/dialogs/tools/dialogpiecepath.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vmisc/def.h b/src/libs/vmisc/def.h index e8e14fa8f..170b7eed0 100644 --- a/src/libs/vmisc/def.h +++ b/src/libs/vmisc/def.h @@ -74,7 +74,7 @@ enum class PieceNodeAngle : unsigned char BySecondEdgeRightAngle }; -enum class PiecePathType : unsigned char {CutomSeamAllowance, InternalPath}; +enum class PiecePathType : unsigned char {PiecePath = 0, CustomSeamAllowance = 1, InternalPath = 2, Unknown = 3}; typedef unsigned char ToolVisHolderType; enum class Tool : ToolVisHolderType diff --git a/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp b/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp index dd9c221ee..7b54ad11e 100644 --- a/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp +++ b/src/libs/vtools/dialogs/tools/dialogpiecepath.cpp @@ -242,7 +242,7 @@ void DialogPiecePath::NameChanged() //--------------------------------------------------------------------------------------------------------------------- void DialogPiecePath::InitPathTypes() { - ui->comboBoxType->addItem(tr("Custom seam allowance"), static_cast(PiecePathType::CutomSeamAllowance)); + ui->comboBoxType->addItem(tr("Custom seam allowance"), static_cast(PiecePathType::CustomSeamAllowance)); //ui->comboBoxType->addItem(tr("Internal path"), static_cast(PiecePathType::InternalPath)); } @@ -365,7 +365,7 @@ bool DialogPiecePath::PathIsValid() const } else { - if (GetType() == PiecePathType::CutomSeamAllowance && FirstPointEqualLast(ui->listWidget)) + if (GetType() == PiecePathType::CustomSeamAllowance && FirstPointEqualLast(ui->listWidget)) { url += tr("First point cannot be equal to the last point!"); ui->helpLabel->setText(url);