[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:
Don Ho 2013-09-14 19:29:12 +00:00
parent f552ef85a7
commit 8e1850a547

View File

@ -383,10 +383,13 @@ void Notepad_plus::command(int id)
}
else
{
checkMenuItem(IDM_VIEW_DOC_MAP, true);
_toolBar.setCheck(IDM_VIEW_DOC_MAP, true);
launchDocMap();
_pDocMap->setClosed(false);
if (_pDocMap)
{
checkMenuItem(IDM_VIEW_DOC_MAP, true);
_toolBar.setCheck(IDM_VIEW_DOC_MAP, true);
_pDocMap->setClosed(false);
}
}
}
break;