]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/statbox.mm
Commit patch [ 1559950 ] fix mem leaks in wx{Dir|File}Dialog
[wxWidgets.git] / src / cocoa / statbox.mm
index bc36016905e55ab85f88574617d636230a7f2d37..289294fff6f283fa9fb79c9a4ec939714b58f92c 100644 (file)
@@ -37,7 +37,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid,
         return false;
     m_cocoaNSView = NULL;
     SetNSBox([[NSBox alloc] initWithFrame:MakeDefaultNSRect(size)]);
-    [GetNSBox() setTitle:wxNSStringWithWxString(wxStripMenuCodes(title))];
+    [GetNSBox() setTitle:wxNSStringWithWxString(GetLabelText(title))];
     if(m_parent)
         m_parent->CocoaAddChild(this);
     SetInitialFrameRect(pos,size);