X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2be72ac2833cc4cadaa5054b5867348f6b2ea139..c6ea1fdaf924be4ee49a19d12f76e4fcd257bb0a:/include/wx/richtext/richtextuicustomization.h?ds=inline 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.