From: Robin Dunn Date: Mon, 30 Dec 2002 22:17:37 +0000 (+0000) Subject: Fixed problem of FormatText causing both the formatted and unformatted X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8eb70827f39de02b29eacb063ec8d5d39080a92c Fixed problem of FormatText causing both the formatted and unformatted text to be displayed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/ogl/basic.cpp b/contrib/src/ogl/basic.cpp index 16e198b1e2..63bbc4dfee 100644 --- a/contrib/src/ogl/basic.cpp +++ b/contrib/src/ogl/basic.cpp @@ -601,7 +601,8 @@ void wxShape::FormatText(wxDC& dc, const wxString& s, int i) return; wxShapeRegion *region = (wxShapeRegion *)node->Data(); - region->SetText(s); + // region->SetText(s); // don't set the formatted text yet, it will be done below + region->m_regionText = s; dc.SetFont(* region->GetFont()); region->GetSize(&w, &h);