Tiled pdf should work only with standard formats.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-10-12 10:40:11 +03:00
parent 0f59db15db
commit 0da31099f3

View File

@ -166,8 +166,11 @@ void DialogSaveLayout::InitTemplates(QComboBox *comboBoxTemplates)
SCASSERT(comboBoxTemplates != nullptr)
VAbstractLayoutDialog::InitTemplates(comboBoxTemplates);
// remove the custom format,
comboBoxTemplates->removeItem(comboBoxTemplates->findData(static_cast<int>(PaperSizeTemplate::Custom)));
// remove unused formats
for (int i = static_cast<int>(PaperSizeTemplate::Roll24in); i <= static_cast<int>(PaperSizeTemplate::Custom); ++i)
{
comboBoxTemplates->removeItem(comboBoxTemplates->findData(i));
}
}