git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56619
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxTopLevelWindowBase::SetIcons(icons);
+ if ( icons.IsEmpty() )
+ {
+ // FIXME: SetIcons(wxNullIconBundle) should unset existing icons,
+ // but we currently don't do that
+ wxASSERT_MSG( m_icons.IsEmpty(), "unsetting icons doesn't work" );
+ return;
+ }
+
if ( !DoSelectAndSetIcon(icons, SM_CXSMICON, SM_CYSMICON, ICON_SMALL) &&
!DoSelectAndSetIcon(icons, SM_CXICON, SM_CYICON, ICON_BIG) )
{