X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2be72ac2833cc4cadaa5054b5867348f6b2ea139..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/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.