Keep the button bitmap centered if the button has no label in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Aug 2010 18:58:02 +0000 (18:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Aug 2010 18:58:02 +0000 (18:58 +0000)
commit1cd44b9c5f49407329c3da220ca8212e65e97d6c
treedf188b3b3797a49844e806027508800fe1b7af8a
parentaa83b6fc90e78371fcc2fb69de77ab7b90293dd1
Keep the button bitmap centered if the button has no label in wxMSW.

We should only honour the bitmap alignment if the button shows both the bitmap
and the label. If only the bitmap is shown (e.g. when wxBitmapButton is used),
it should always be centered as it used to be done in 2.8.

Closes #12323.

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