]> git.saurik.com Git - wxWidgets.git/commitdiff
keeping m_labelOrig untouched, solves test failures (FM)
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 2 Apr 2010 18:19:03 +0000 (18:19 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 2 Apr 2010 18:19:03 +0000 (18:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/stattext_osx.cpp

index 1ff9003570ce5765f794f655d45d705870a02ef6..79223b46b80e415b26e9037797b002b5c851e49f 100644 (file)
@@ -63,13 +63,8 @@ void wxStaticText::SetLabel(const wxString& label)
 #endif
     )
     {
-        // remove markup
-        wxString str(label);
-        if (HasFlag(wxST_MARKUP))
-            str = RemoveMarkup(label);
-
-        // and leave ellipsization to the OS
-        DoSetLabel(str);
+        // leave ellipsization to the OS
+        DoSetLabel(GetLabelWithoutMarkup());
     }
     else // not supported natively
     {
@@ -107,7 +102,6 @@ bool wxStaticText::SetFont(const wxFont& font)
 
 void wxStaticText::DoSetLabel(const wxString& label)
 {
-    m_labelOrig = label;
     m_label = RemoveMnemonics(label);
     m_peer->SetLabel(m_label , GetFont().GetEncoding() );
 }