X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2be72ac2833cc4cadaa5054b5867348f6b2ea139..465de0be705e52c7f97e9bb6169af9d20a7f72a8:/include/wx/richtext/richtextuicustomization.h diff --git a/include/wx/richtext/richtextuicustomization.h b/include/wx/richtext/richtextuicustomization.h index d507aba2fa..7b3afe51c8 100644 --- a/include/wx/richtext/richtextuicustomization.h +++ b/include/wx/richtext/richtextuicustomization.h @@ -60,10 +60,10 @@ public: virtual bool ShowHelp(wxWindow* win) { - if (m_uiCustomization && m_helpTopic != -1) - return m_uiCustomization->ShowHelp(win, m_helpTopic); - else + if ( !m_uiCustomization || m_helpTopic == -1 ) return false; + + return m_uiCustomization->ShowHelp(win, m_helpTopic); } /// Get the help topic identifier.