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