diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/process_xml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/process_xml.cpp b/library/process_xml.cpp index c7597247..bccd8e3a 100644 --- a/library/process_xml.cpp +++ b/library/process_xml.cpp @@ -464,8 +464,8 @@ void FfsXmlParser::readXmlGlobalSettings(xmlAccess::XmlGlobalSettings& outputCfg size_t folderPairMax = 0; readXmlElementLogging("FolderPairsMax", mainWindow, folderPairMax); - outputCfg.gui.addFolderPairCountMax = std::max(static_cast<size_t>(2), folderPairMax) - 1; //map folderPairMax to additionalFolderPairMax - + if (folderPairMax != 0) //if reading fails, leave at default + outputCfg.gui.addFolderPairCountMax = std::max(static_cast<size_t>(2), folderPairMax) - 1; //map folderPairMax to additionalFolderPairMax //########################################################### //read column attributes |