From: Włodzimierz Skiba Date: Fri, 5 May 2006 09:42:21 +0000 (+0000) Subject: !wxUSE_TOOLTIPS build fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7577ac4b5c56d384441b995b4cea3b24d5fc441e !wxUSE_TOOLTIPS build fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xh_radbx.cpp b/src/xrc/xh_radbx.cpp index 9beea7ba9d..83be9a2d29 100644 --- a/src/xrc/xh_radbx.cpp +++ b/src/xrc/xh_radbx.cpp @@ -81,12 +81,14 @@ wxObject *wxRadioBoxXmlHandler::DoCreateResource() SetupWindow(control); +#if wxUSE_TOOLTIPS const unsigned count = labels.size(); for( unsigned i = 0; i < count; i++ ) { if ( !tooltips[i].empty() ) control->SetItemToolTip(i, tooltips[i]); } +#endif // wxUSE_TOOLTIPS labels.clear(); // dump the strings tooltips.clear(); // dump the tooltips