From a02a86fde94bce2d2a98da63842dbe86465095a0 Mon Sep 17 00:00:00 2001 From: archshift Date: Sat, 9 Aug 2014 03:25:05 -0700 Subject: [PATCH] Fixed assertion when creating new perspective. Wx was attempting to format a string with specifier %d (integer) with a size_t. --- Source/Core/DolphinWX/FrameAui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/FrameAui.cpp b/Source/Core/DolphinWX/FrameAui.cpp index 0e0be65847..db715139be 100644 --- a/Source/Core/DolphinWX/FrameAui.cpp +++ b/Source/Core/DolphinWX/FrameAui.cpp @@ -533,8 +533,7 @@ void CFrame::OnPerspectiveMenu(wxCommandEvent& event) wxTextEntryDialog dlg(this, _("Enter a name for the new perspective:"), _("Create new perspective")); - wxString DefaultValue = wxString::Format(_("Perspective %d"), - Perspectives.size() + 1); + wxString DefaultValue = wxString::Format(_("Perspective %d"), (int)(Perspectives.size() + 1)); dlg.SetValue(DefaultValue); int Return = 0;