diff --git a/include/wx/richtext/richtextctrl.h b/include/wx/richtext/richtextctrl.h index 0c2988d41b..e4c9aeef51 100644 --- a/include/wx/richtext/richtextctrl.h +++ b/include/wx/richtext/richtextctrl.h @@ -575,10 +575,6 @@ public: // Implementation -#if wxRICHTEXT_DERIVES_FROM_TEXTCTRLBASE - WX_FORWARD_TO_SCROLL_HELPER() -#endif - /// Set font, and also default attributes virtual bool SetFont(const wxFont& font); @@ -673,6 +669,10 @@ public: /// Returns the first visible position in the current view long GetFirstVisiblePosition() const; +#if wxRICHTEXT_DERIVES_FROM_TEXTCTRLBASE + WX_FORWARD_TO_SCROLL_HELPER() +#endif + // Overrides protected: