]> git.saurik.com Git - wxWidgets.git/commitdiff
String formatting fix
authorJulian Smart <julian@anthemion.co.uk>
Wed, 18 Jul 2012 14:01:46 +0000 (14:01 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 18 Jul 2012 14:01:46 +0000 (14:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextstyledlg.cpp

index 40705cff21c5b30f2336ab936493f779489179a2..6d7d3c3bdd2c70bb115a65deea65442d345f77f8 100644 (file)
@@ -784,7 +784,7 @@ void wxRichTextStyleOrganiserDialog::OnDeleteClick( wxCommandEvent& WXUNUSED(eve
     {
         wxRichTextStyleDefinition* def = m_stylesListBox->GetStyleListBox()->GetStyle(sel);
         wxString name(def->GetName());
-        if (wxYES == wxMessageBox(wxString::Format(_("Delete style %s?"), name), _("Delete Style"), wxYES_NO|wxICON_QUESTION, this))
+        if (wxYES == wxMessageBox(wxString::Format(_("Delete style %s?"), name.c_str()), _("Delete Style"), wxYES_NO|wxICON_QUESTION, this))
         {
             m_stylesListBox->GetStyleListBox()->SetItemCount(0);