]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/richtext/richtextuicustomization.h
No real changes, just add wxSizerItem::AddBorderToSize() helper.
[wxWidgets.git] / include / wx / richtext / richtextuicustomization.h
index ea20a60d69e09faab3f2c6f7d9e1fa6568971558..7b3afe51c88432edc729626e96fd80459ccd3b72 100644 (file)
@@ -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.