X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/603f702b4a0e19ffa27cffc52872efaac1aa8c54..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/richtext/richtextuicustomization.h?ds=sidebyside diff --git a/include/wx/richtext/richtextuicustomization.h b/include/wx/richtext/richtextuicustomization.h index ea20a60d69..7b3afe51c8 100644 --- a/include/wx/richtext/richtextuicustomization.h +++ b/include/wx/richtext/richtextuicustomization.h @@ -14,6 +14,8 @@ #if wxUSE_RICHTEXT +#include "wx/window.h" + /** @class wxRichTextUICustomization The base class for functionality to plug in to various rich text control dialogs, @@ -58,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.