projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
subdindented paragraphs support (patch 933436)
[wxWidgets.git]
/
src
/
univ
/
toolbar.cpp
diff --git
a/src/univ/toolbar.cpp
b/src/univ/toolbar.cpp
index c0eea0ba8b3a558578c7ccdc1370d66b10cc13f5..74ff8b55e0effb50ad7093cf2572c97eeeba88ed 100644
(file)
--- a/
src/univ/toolbar.cpp
+++ b/
src/univ/toolbar.cpp
@@
-645,6
+645,8
@@
bool wxToolBar::PerformAction(const wxControlAction& action,
const wxString& strArg)
{
wxToolBarTool *tool = (wxToolBarTool*) FindById(numArg);
+ if (!tool)
+ return false;
if ( action == wxACTION_TOOLBAR_TOGGLE )
{