]> git.saurik.com Git - wxWidgets.git/commitdiff
refresh wxStaticText after changing its label if we change its size
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Oct 2001 23:00:25 +0000 (23:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Oct 2001 23:00:25 +0000 (23:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/stattext.cpp

index 238c9ce24300df6dccc7ca00054e2f8a3ab23264..a83000876e9251987e139f10fc554f7c0902be96 100644 (file)
@@ -150,6 +150,8 @@ void wxStaticText::SetLabel(const wxString& label)
     if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
     {
         DoSetSize(-1, -1, -1, -1, wxSIZE_AUTO_WIDTH | wxSIZE_AUTO_HEIGHT);
+
+        Refresh();
     }
 }