From b0810a76635aaa6dd6864445bca5b5988c163592 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Tue, 29 Sep 2009 11:56:43 +0000 Subject: [PATCH] Wrap() after SetFont() and don't SetMinSize() to a fixed size to calculate reporter window dimensions correctly. Originally committed to SVN as r3603. --- aegisub/reporter/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aegisub/reporter/main.cpp b/aegisub/reporter/main.cpp index 6a72afe2e..68695d4e4 100644 --- a/aegisub/reporter/main.cpp +++ b/aegisub/reporter/main.cpp @@ -123,9 +123,9 @@ mFrame::mFrame(const wxString &window_title) msgSizer->Add(msg, 1, wxALL, 5); wxStaticText *notice = new wxStaticText(this, -1,_("This information is completely anonymous, no personal information is sent along it is strictly used for targeting new features and the future direction of Aegisub.")); - notice->Wrap(325); msgSizer->Add(notice, 1, wxALL, 5); notice->SetFont(wxFont(11, wxFONTFAMILY_SWISS, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_NORMAL)); + notice->Wrap(325); msgSizer->Add(new wxButton(this, 42, "View Report"), 0, wxALL, 10 ); @@ -138,7 +138,6 @@ mFrame::mFrame(const wxString &window_title) this->SetSizerAndFit(topSizer); // Is there a better way to do this? - this->SetMinSize(wxSize(360,-1)); this->SetMaxSize(this->GetEffectiveMinSize()); this->SetMinSize(this->GetEffectiveMinSize());