Extend number of user material placeholders up to 20.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-09-28 17:45:57 +03:00
parent fed167aea4
commit 5551b853b9
2 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ extern const QString pl_mInterlining;
extern const QString pl_wCut;
extern const QString pl_wOnFold;
const int userMaterialPlaceholdersQuantity = 9;
const int userMaterialPlaceholdersQuantity = 20;
extern const QStringList labelTemplatePlaceholders;

View File

@ -500,7 +500,7 @@ void DialogEditLabel::InitPlaceholders()
const QMap<int, QString> materials = m_doc->GetPatternMaterials();
for (int i = 0; i < userMaterialPlaceholdersQuantity; ++i)
{
const QString number = QString::number(i + 1);
const QString number = QString(" %1").arg(i + 1, 2, 10, QLatin1Char('0'));
QString value;
if (materials.contains(i + 1))