Browse Source

[BUG_FIXED] Fix the crash issue while the config.xml is corrupted.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@24 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 17 years ago
parent
commit
315e38d7cd
  1. 12
      PowerEditor/src/Parameters.cpp
  2. 1
      PowerEditor/src/ScitillaComponent/ScintillaEditView.h

12
PowerEditor/src/Parameters.cpp

@ -661,8 +661,16 @@ void NppParameters::feedFileListParameters(TiXmlNode *node)
childNode && (_nbFile < NB_MAX_LRF_FILE);
childNode = childNode->NextSibling("File") )
{
_LRFileList[_nbFile] = new string((childNode->FirstChild())->Value());
_nbFile++;
TiXmlNode *node = childNode->FirstChild();
if (node)
{
const char *filePath = node->Value();
if (filePath)
{
_LRFileList[_nbFile] = new string(filePath);
_nbFile++;
}
}
}
}

1
PowerEditor/src/ScitillaComponent/ScintillaEditView.h

@ -529,7 +529,6 @@ public:
convertSelectedTextTo(UPPERCASE);
else
execute(SCI_UPPERCASE);
};
void collapse(int level2Collapse, bool mode);

Loading…
Cancel
Save