[BUG_FIXED] Fix for L_EXTERNAL in loadSession.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@424 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2009-02-09 23:48:18 +00:00
parent 66a072889b
commit 60f91b7b48
1 changed files with 4 additions and 0 deletions

View File

@ -525,6 +525,8 @@ bool Notepad_plus::loadSession(Session & session)
LangType typeToSet = L_TXT;
if (id != 0 && lstrcmp(pLn, TEXT("User Defined")) != 0)
typeToSet = menuID2LangType(id);
if (typeToSet == L_EXTERNAL )
typeToSet = (LangType)(id - IDM_LANG_EXTERNAL + L_EXTERNAL);
Buffer * buf = MainFileManager->getBufferByID(lastOpened);
buf->setPosition(session._mainViewFiles[i], &_mainEditView);
@ -578,6 +580,8 @@ bool Notepad_plus::loadSession(Session & session)
LangType typeToSet = L_TXT;
if (id != 0)
typeToSet = menuID2LangType(id);
if (typeToSet == L_EXTERNAL )
typeToSet = (LangType)(id - IDM_LANG_EXTERNAL + L_EXTERNAL);
Buffer * buf = MainFileManager->getBufferByID(lastOpened);
buf->setPosition(session._subViewFiles[k], &_subEditView);