]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/stattext.cpp
invalidate m_selection in DoRemovePage(), not in DeletePage() (replaces patch 998984)
[wxWidgets.git] / 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;