Fix best size computation for buttons without image and with empty label.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Dec 2009 15:37:37 +0000 (15:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 22 Dec 2009 15:37:37 +0000 (15:37 +0000)
commit4b601a59b5f303a8866a18c90fff90aff393c6b7
treee0caf16e02bc995b4ff84589b623c780fb3cd78e
parent2ec335db7806c058a02d022d2f75b4144ce69d2a
Fix best size computation for buttons without image and with empty label.

If a button was initially created with an empty label (but without image
neither), its best size was computed and cached as being null. Correct this by
giving the button the default size instead, as expected.

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