Fix typo.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-24 21:31:27 +02:00
parent 8182f2979b
commit 7f1bab1ac6
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -242,7 +242,7 @@ void DialogPiecePath::NameChanged()
//---------------------------------------------------------------------------------------------------------------------
void DialogPiecePath::InitPathTypes()
{
ui->comboBoxType->addItem(tr("Custom seam allowance"), static_cast<int>(PiecePathType::CutomSeamAllowance));
ui->comboBoxType->addItem(tr("Custom seam allowance"), static_cast<int>(PiecePathType::CustomSeamAllowance));
//ui->comboBoxType->addItem(tr("Internal path"), static_cast<int>(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);