From 5851e6407895ba0a456fe19bd0b1a840dd5df4f6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 14 Dec 2009 12:41:55 +0000 Subject: [PATCH] Restore correct access to wxGenericStaticText::Set{Font,Label}. Accessibility of these methods was accidentally changed to protected in r62821 and this broke wxUniv compilation, make them public again. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/stattextg.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/wx/generic/stattextg.h b/include/wx/generic/stattextg.h index 02860ea951..361c3dc007 100644 --- a/include/wx/generic/stattextg.h +++ b/include/wx/generic/stattextg.h @@ -44,12 +44,13 @@ public: const wxString& name = wxStaticTextNameStr); -protected: - virtual wxSize DoGetBestClientSize() const; - + // overridden base class virtual methods virtual void SetLabel(const wxString& label); virtual bool SetFont(const wxFont &font); +protected: + virtual wxSize DoGetBestClientSize() const; + virtual wxString DoGetLabel() const { return m_label; } virtual void DoSetLabel(const wxString& label); -- 2.45.2