Avoid crashes in wxMSW when using buttons without valid parent.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Mar 2012 01:35:53 +0000 (01:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Mar 2012 01:35:53 +0000 (01:35 +0000)
commit76cae7cbc2b31aeba7be094e4161fd73bcf30022
tree3335744bcbedded10651b8cfc24b5f9ad2b9d425
parent37e48466974d34efab092f2429fe3987a995ceed
Avoid crashes in wxMSW when using buttons without valid parent.

Child controls such as buttons are supposed to always have a valid parent but
if, somehow, they don't, still don't crash in wxMSW button code but just
trigger an assert failure instead of unavailable button top level parent
instead.

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