]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/richtext/richtextuicustomization.h
Implement SelectAll for OSX WebKit.
[wxWidgets.git] / include / wx / richtext / richtextuicustomization.h
index d507aba2fa6a5b5ece83b9e3bde8139870cb13b1..7b3afe51c88432edc729626e96fd80459ccd3b72 100644 (file)
@@ -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.