Fix assert when creating wxBitmapButton without a valid bitmap in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 3 May 2011 23:31:15 +0000 (23:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 3 May 2011 23:31:15 +0000 (23:31 +0000)
commitad94cb2b4f4bee1dce6fa6bfce3a04b117b83141
treec45bf00715c97b9e9977ded98ba010ee9db8d073
parenta6df08eca3240a52556d875ad82bc82504045111
Fix assert when creating wxBitmapButton without a valid bitmap in wxMSW.

wxBitmapButton can be created without a valid bitmap if SetBitmapLabel() is
called later, so don't call SetBitmapLabel() from the constructor if no bitmap
was provided.

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