From 20a87d0d374d35b02444fc9cd874c8e56a1f9f75 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 19 Dec 2007 00:30:54 +0000 Subject: [PATCH] MGR: Work around long-standing cosmetic bug in SimpleGUI with newer versions of wxwidgets. svn path=/trunk/boinc/; revision=14400 --- clientgui/sg_ViewTabPage.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clientgui/sg_ViewTabPage.cpp b/clientgui/sg_ViewTabPage.cpp index 0f08b179a4..086ebb1800 100644 --- a/clientgui/sg_ViewTabPage.cpp +++ b/clientgui/sg_ViewTabPage.cpp @@ -510,6 +510,13 @@ CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple(); wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple)); wxLogTrace(wxT("Function Start/End"), wxT("CViewTabPage::DrawText - Begin")); + +#if wxCHECK_VERSION(2,8,0) + // Workaround for unknown problem with newer versions of wxWidgets + // At this point, the size of the panel has been reduced to 336,300 + this->SetSize(343,314); +#endif + #if (defined(__WXMAC__) && (! wxCHECK_VERSION(2,8,0))) // wxBufferedDC.GetTextExtent() fails with wxMac-2.6.3, causing Manager to hang wxClientDC dc(this);