From 8c3de1979643e1e91f51b93361a416aa5526501c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 5 Nov 2002 23:08:31 +0000 Subject: [PATCH] Fix to allow wxShapeRegion to display text, from George Seally git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/ogl/basicp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/include/wx/ogl/basicp.h b/contrib/include/wx/ogl/basicp.h index fddc8732ac..a1d60cedee 100644 --- a/contrib/include/wx/ogl/basicp.h +++ b/contrib/include/wx/ogl/basicp.h @@ -136,7 +136,8 @@ class wxShapeRegion: public wxObject ~wxShapeRegion(); // Accessors - inline void SetText(const wxString& s) { m_regionText = s; } + inline void SetText(const wxString& s) + { m_regionText = s; m_formattedText.Append(new wxShapeTextLine(0,0,s));} void SetFont(wxFont *f); void SetMinSize(double w, double h); void SetSize(double w, double h);