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:
parent
b81617fba1
commit
a02a86fde9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue