From 62490fd57f403da83fc5dd6e5ec2f3fcfa8c47cb Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:09:02 +0200 Subject: 3.11 --- library/process_xml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library') 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(2), folderPairMax) - 1; //map folderPairMax to additionalFolderPairMax - + if (folderPairMax != 0) //if reading fails, leave at default + outputCfg.gui.addFolderPairCountMax = std::max(static_cast(2), folderPairMax) - 1; //map folderPairMax to additionalFolderPairMax //########################################################### //read column attributes -- cgit