[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:
parent
66a072889b
commit
60f91b7b48
|
@ -525,6 +525,8 @@ bool Notepad_plus::loadSession(Session & session)
|
||||||
LangType typeToSet = L_TXT;
|
LangType typeToSet = L_TXT;
|
||||||
if (id != 0 && lstrcmp(pLn, TEXT("User Defined")) != 0)
|
if (id != 0 && lstrcmp(pLn, TEXT("User Defined")) != 0)
|
||||||
typeToSet = menuID2LangType(id);
|
typeToSet = menuID2LangType(id);
|
||||||
|
if (typeToSet == L_EXTERNAL )
|
||||||
|
typeToSet = (LangType)(id - IDM_LANG_EXTERNAL + L_EXTERNAL);
|
||||||
|
|
||||||
Buffer * buf = MainFileManager->getBufferByID(lastOpened);
|
Buffer * buf = MainFileManager->getBufferByID(lastOpened);
|
||||||
buf->setPosition(session._mainViewFiles[i], &_mainEditView);
|
buf->setPosition(session._mainViewFiles[i], &_mainEditView);
|
||||||
|
@ -578,6 +580,8 @@ bool Notepad_plus::loadSession(Session & session)
|
||||||
LangType typeToSet = L_TXT;
|
LangType typeToSet = L_TXT;
|
||||||
if (id != 0)
|
if (id != 0)
|
||||||
typeToSet = menuID2LangType(id);
|
typeToSet = menuID2LangType(id);
|
||||||
|
if (typeToSet == L_EXTERNAL )
|
||||||
|
typeToSet = (LangType)(id - IDM_LANG_EXTERNAL + L_EXTERNAL);
|
||||||
|
|
||||||
Buffer * buf = MainFileManager->getBufferByID(lastOpened);
|
Buffer * buf = MainFileManager->getBufferByID(lastOpened);
|
||||||
buf->setPosition(session._subViewFiles[k], &_subEditView);
|
buf->setPosition(session._subViewFiles[k], &_subEditView);
|
||||||
|
|
Loading…
Reference in New Issue