diff --git a/clientgui/sg_StatImageLoader.cpp b/clientgui/sg_StatImageLoader.cpp index 757dad4afd..adf1af1f32 100644 --- a/clientgui/sg_StatImageLoader.cpp +++ b/clientgui/sg_StatImageLoader.cpp @@ -108,6 +108,12 @@ void StatImageLoader::AddMenuItems() wxASSERT(pDoc); wxASSERT(wxDynamicCast(pDoc, CMainDocument)); +#ifndef __WXMAC__ + CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple(); + + wxASSERT(pSkinSimple); + wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple)); +#endif PROJECT* project = pDoc->state.lookup_project(m_prjUrl); urlCount = project->gui_urls.size();