This patch fixes a debug assertion in tooltips.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16033
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// something like this where the derived class can do such things
// itself instead of wxToolTip "knowing" about them all
wxComboBox *combo = wxDynamicCast(control, wxComboBox);
// something like this where the derived class can do such things
// itself instead of wxToolTip "knowing" about them all
wxComboBox *combo = wxDynamicCast(control, wxComboBox);
+ if ( combo && !(combo->GetWindowStyle() & wxCB_READONLY))
- WXHWND hwndComboEdit = combo->GetWindowStyle() & wxCB_READONLY
- ? combo->GetHWND()
- : combo->GetEditHWND();
+ WXHWND hwndComboEdit = combo->GetEditHWND();
if ( hwndComboEdit )
{
Add(hwndComboEdit);
if ( hwndComboEdit )
{
Add(hwndComboEdit);