summaryrefslogtreecommitdiff
path: root/library/process_xml.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:09:02 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:09:02 +0200
commit62490fd57f403da83fc5dd6e5ec2f3fcfa8c47cb (patch)
tree8485ba5ea0f88050714350dfbdc13486037cdb2e /library/process_xml.cpp
parent3.10 (diff)
downloadFreeFileSync-62490fd57f403da83fc5dd6e5ec2f3fcfa8c47cb.tar.gz
FreeFileSync-62490fd57f403da83fc5dd6e5ec2f3fcfa8c47cb.tar.bz2
FreeFileSync-62490fd57f403da83fc5dd6e5ec2f3fcfa8c47cb.zip
3.11
Diffstat (limited to 'library/process_xml.cpp')
-rw-r--r--library/process_xml.cpp4
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
bgstack15