Clarify wxButton::AdjustForBitmapSize() semantics in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Feb 2011 22:11:58 +0000 (22:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Feb 2011 22:11:58 +0000 (22:11 +0000)
commit65034d07ed264018024570904f6ad18312339a3f
treef3ccd3d4e72a132e23c6955934b0aebedc54f11c
parent026e7dcba01e53e4adfbc4d3156be4325d7aeefb
Clarify wxButton::AdjustForBitmapSize() semantics in wxMSW.

This method should only be called if we do have an image, assert (instead of
silently returning) if it's called when we don't.

Also explain in a comment why do we need to call CacheBestSize() only when we
have an image in DoGetBestSize().

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