mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 00:04:25 +02:00
[ENHANCEMENT] Avoid Notepad++ crash.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1116 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
f552ef85a7
commit
8e1850a547
@ -382,13 +382,16 @@ void Notepad_plus::command(int id)
|
|||||||
_toolBar.setCheck(IDM_VIEW_DOC_MAP, false);
|
_toolBar.setCheck(IDM_VIEW_DOC_MAP, false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
launchDocMap();
|
||||||
|
if (_pDocMap)
|
||||||
{
|
{
|
||||||
checkMenuItem(IDM_VIEW_DOC_MAP, true);
|
checkMenuItem(IDM_VIEW_DOC_MAP, true);
|
||||||
_toolBar.setCheck(IDM_VIEW_DOC_MAP, true);
|
_toolBar.setCheck(IDM_VIEW_DOC_MAP, true);
|
||||||
launchDocMap();
|
|
||||||
_pDocMap->setClosed(false);
|
_pDocMap->setClosed(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDM_VIEW_FUNC_LIST:
|
case IDM_VIEW_FUNC_LIST:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user