From 83bd722c0aa4cc65e85611065d33da14a523d873 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 20 Jul 2012 23:08:48 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Andreas Jonsson) Fix a issue that "max number of recent files" cannot be set to 0. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@929 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Parameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index f086b0b0..2e38c766 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -1718,7 +1718,7 @@ void NppParameters::feedFileListParameters(TiXmlNode *node) // nbMaxFile value int nbMaxFile; const TCHAR *strVal = (historyRoot->ToElement())->Attribute(TEXT("nbMaxFile"), &nbMaxFile); - if (strVal && (nbMaxFile > 0) && (nbMaxFile <= 50)) + if (strVal && (nbMaxFile >= 0) && (nbMaxFile <= 50)) _nbMaxRecentFile = nbMaxFile; // customLen value