Fixed assertion when creating new perspective.

Wx was attempting to format a string with specifier %d (integer) with a
size_t.
This commit is contained in:
archshift 2014-08-09 03:25:05 -07:00
parent b81617fba1
commit a02a86fde9
1 changed files with 1 additions and 2 deletions

View File

@ -533,8 +533,7 @@ void CFrame::OnPerspectiveMenu(wxCommandEvent& event)
wxTextEntryDialog dlg(this, wxTextEntryDialog dlg(this,
_("Enter a name for the new perspective:"), _("Enter a name for the new perspective:"),
_("Create new perspective")); _("Create new perspective"));
wxString DefaultValue = wxString::Format(_("Perspective %d"), wxString DefaultValue = wxString::Format(_("Perspective %d"), (int)(Perspectives.size() + 1));
Perspectives.size() + 1);
dlg.SetValue(DefaultValue); dlg.SetValue(DefaultValue);
int Return = 0; int Return = 0;