Correct wxMSW wxToolTip behaviour for wxRadioBox items tooltips.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2010 22:38:13 +0000 (22:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2010 22:38:13 +0000 (22:38 +0000)
commita48cf5e2d30e5415d961ffdbb05fdc53e3d88255
treee8301d9cfa76131e2b04146d0522cc75627a6973
parent6ab66823d87cd569ea2751f42e5da2749497db4c
Correct wxMSW wxToolTip behaviour for wxRadioBox items tooltips.

The assert added in r66053 checking that we couldn't have tooltips for child
windows if we didn't have the tooltip for the main one turned out to be wrong,
at least in wxRadioBox case it's perfectly possible to have the tooltips for
the individual radio buttons without having one for the box itself.

Replace the assert with a simple if check.

This fixes a unit test failure in RadioBoxTestCase.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/tooltip.cpp