]> git.saurik.com Git - wxWidgets.git/commit
Don't create labels with wxST_NO_AUTORESIZE flag with empty size by default.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 22:31:54 +0000 (22:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 22:31:54 +0000 (22:31 +0000)
commitfab97536810dea903b79322144f9b110368876a6
tree3a8174b507c6960c4df637b54905d4192599d866
parent8c118ca4cb5b10428e48867ee2a50838d739d740
Don't create labels with wxST_NO_AUTORESIZE flag with empty size by default.

Since r57627 wxStaticText objects with wxST_NO_AUTORESIZE flag created with
wxDefaultSize were created with zero width. This accounted for the
disappearance of the labels for the toolbar controls (as could be seen in the
toolbar sample where the combobox label was not shown any more).

Fix this by explicitly setting the correct initial size after the correct
label is set.

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