Skip to content

Commit

Permalink
[BUG_FIXED] Fix a crash bug - crash on launch time if default User de…
Browse files Browse the repository at this point in the history
…fined language was set on the previous session.

- Notepad-plus svn trunk @ 823
  • Loading branch information
donho committed Oct 7, 2011
1 parent ad22339 commit 8768dfd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion PowerEditor/src/NppIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ bool Notepad_plus::loadSession(Session & session)
const TCHAR *pLn = session._mainViewFiles[i]._langName.c_str();
int id = getLangFromMenuName(pLn);
LangType typeToSet = L_TEXT;
if (id != 0 && lstrcmp(pLn, TEXT("User Defined")) != 0)
if (id != 0 && id != IDM_LANG_USER)
typeToSet = menuID2LangType(id);
if (typeToSet == L_EXTERNAL )
typeToSet = (LangType)(id - IDM_LANG_EXTERNAL + L_EXTERNAL);
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/src/ScitillaComponent/UserDefineDialog.rc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ IDD_GLOBAL_USERDEFINE_DLG DIALOGEX 36, 44, 340, 550
STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | WS_POPUP |
WS_CAPTION | WS_VSCROLL | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "User-Defined"
CAPTION "User Defined Language"
FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x0
BEGIN
LTEXT "User language : ",IDC_LANGNAME_STATIC,0,3,63,8,0,WS_EX_RIGHT
Expand Down
31 changes: 0 additions & 31 deletions PowerEditor/src/WinControls/ProjectPanel/demo.xml

This file was deleted.

0 comments on commit 8768dfd

Please sign in to comment.