]> git.saurik.com Git - wxWidgets.git/commitdiff
Refresh is necessary in earlier systems, no penalty when doing in 10.3+
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 28 Jul 2004 13:48:28 +0000 (13:48 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 28 Jul 2004 13:48:28 +0000 (13:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/stattext.cpp

index 93998884fd35770a7015131c7fa47181a7d1ef13..f21e1a9ee8b17fb1656eb533db6764e521aa4501 100644 (file)
@@ -95,7 +95,7 @@ void wxStaticText::SetLabel(const wxString& st )
         InvalidateBestSize();
         SetSize( GetBestSize() ) ;
     }
-
+    Refresh() ;
     Update() ;
 }
 
@@ -106,10 +106,10 @@ bool wxStaticText::SetFont(const wxFont& font)
        if ( ret )
        {
            if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
-            {
-                InvalidateBestSize();
-               SetSize( GetBestSize() );
-            }
+        {
+            InvalidateBestSize();
+            SetSize( GetBestSize() );
+        }
        }
 
     return ret;