[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
This commit is contained in:
Don Ho 2012-07-20 23:08:48 +00:00
parent 6fc39bed3f
commit 83bd722c0a

View File

@ -1718,7 +1718,7 @@ void NppParameters::feedFileListParameters(TiXmlNode *node)
// nbMaxFile value // nbMaxFile value
int nbMaxFile; int nbMaxFile;
const TCHAR *strVal = (historyRoot->ToElement())->Attribute(TEXT("nbMaxFile"), &nbMaxFile); const TCHAR *strVal = (historyRoot->ToElement())->Attribute(TEXT("nbMaxFile"), &nbMaxFile);
if (strVal && (nbMaxFile > 0) && (nbMaxFile <= 50)) if (strVal && (nbMaxFile >= 0) && (nbMaxFile <= 50))
_nbMaxRecentFile = nbMaxFile; _nbMaxRecentFile = nbMaxFile;
// customLen value // customLen value