]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/control.cpp
Include wx/app.h according to precompiled headers of wx/wx.h (with other minor cleaning).
[wxWidgets.git] / src / mac / classic / control.cpp
index 4d5f5c15ad4faffd78c6f72051669e9b7472f200..8f7ee77cfb87b9f965fc4f8baaa4841e7bb43641 100644 (file)
 #endif
 
 #include "wx/control.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+#endif // WX_PRECOMP
+
 #include "wx/panel.h"
-#include "wx/app.h"
 #include "wx/dc.h"
 #include "wx/dcclient.h"
 #include "wx/notebook.h"
@@ -435,13 +439,13 @@ void wxControl::MacAdjustControlRect()
         {
             if ( IsKindOf( CLASSINFO( wxButton ) ) )
             {
-                m_width = m_label.Length() * 8 + 12 ;
+                m_width = m_label.length() * 8 + 12 ;
                 if ( m_width < 70 )
                   m_width = 70 ;
             }
             else if ( IsKindOf( CLASSINFO( wxStaticText ) ) )
             {
-                m_width = m_label.Length() * 8 ;
+                m_width = m_label.length() * 8 ;
             }
             else
                 m_width = bestsize.right - bestsize.left ;