From 904b5aafe4e21b385a98995769dfcf65b5334a28 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 18 May 2012 05:03:21 +0000 Subject: [PATCH] Set both the initial and value for font size spin ctrls as well Originally committed to SVN as r6823. --- aegisub/src/preferences_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/preferences_base.cpp b/aegisub/src/preferences_base.cpp index 5cc66cc69..5dbc4a5d9 100644 --- a/aegisub/src/preferences_base.cpp +++ b/aegisub/src/preferences_base.cpp @@ -258,7 +258,7 @@ void OptionPage::OptionFont(wxSizer *sizer, std::string opt_prefix) { font_name->SetMinSize(wxSize(160, -1)); font_name->Bind(wxEVT_COMMAND_TEXT_UPDATED, StringUpdater(face_opt->GetName().c_str(), parent)); - wxSpinCtrl *font_size = new wxSpinCtrl(this, -1, "", wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 3, 42, size_opt->GetInt()); + wxSpinCtrl *font_size = new wxSpinCtrl(this, -1, wxString::Format("%d", (int)size_opt->GetInt()), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 3, 42, size_opt->GetInt()); font_size->Bind(wxEVT_COMMAND_SPINCTRL_UPDATED, IntUpdater(size_opt->GetName().c_str(), parent)); wxButton *pick_btn = new wxButton(this, -1, _("Choose..."));