From 6e0584e84866140e53f7082c770bb46170dbf734 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 13 Jan 2018 10:52:01 +0200 Subject: [PATCH] Fix bug in Label template editor. User material placeholders were wrong in combobox. --HG-- branch : develop --- src/libs/vtools/dialogs/support/dialogeditlabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vtools/dialogs/support/dialogeditlabel.cpp b/src/libs/vtools/dialogs/support/dialogeditlabel.cpp index 448beee06..97a7aa90b 100644 --- a/src/libs/vtools/dialogs/support/dialogeditlabel.cpp +++ b/src/libs/vtools/dialogs/support/dialogeditlabel.cpp @@ -500,7 +500,7 @@ void DialogEditLabel::InitPlaceholders() const QMap materials = m_doc->GetPatternMaterials(); for (int i = 0; i < userMaterialPlaceholdersQuantity; ++i) { - const QString number = QString(" %1").arg(i + 1, 2, 10, QLatin1Char('0')); + const QString number = QString::number(i+1); QString value; if (materials.contains(i + 1))