]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/stattext.cpp
Applied [ 1235509 ] wxCocoa unicode wxT("fixes")
[wxWidgets.git] / src / mac / classic / stattext.cpp
index 1c0facdbf70d86610846d12989813d7cef848fd9..50acd4a904e4ef489050708d51337ff4698f92cd 100644 (file)
@@ -24,9 +24,7 @@
 
 #include <stdio.h>
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
-#endif
 
 #include "wx/mac/uma.h"
 
@@ -236,6 +234,7 @@ void wxStaticText::SetLabel(const wxString& st )
     {
         // temporary fix until layout measurement and drawing are in synch again
         Refresh() ;
+        InvalidateBestSize();
         SetSize( GetBestSize() ) ;
     }
     Refresh() ;
@@ -253,7 +252,8 @@ bool wxStaticText::SetFont(const wxFont& font)
            if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
            {
                // temporary fix until layout measurement and drawing are in synch again
-            Refresh() ;
+                Refresh() ;
+                InvalidateBestSize();
                SetSize( GetBestSize() );
            }
        }