!wxUSE_TOOLTIPS build fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2006-05-05 09:42:21 +00:00
parent 76b49cf49b
commit 7577ac4b5c

View File

@ -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