]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/stattext.cpp
avoid setting initial position if it was not specified, broken in r70734
[wxWidgets.git] / src / osx / carbon / stattext.cpp
index 995cc7966b3a0261276cfe2de83dea375933dd79..8b0c9714c47b5ed9261e7da5685a84ff0f0d0e34 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     04/01/98
-// RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -52,6 +51,7 @@ wxSize wxStaticText::DoGetBestSize() const
     GetPeer()->SetData( kControlStaticTextIsMultilineTag, (Boolean)0 );
     GetPeer()->GetBestRect( &bestsize ) ;
     GetPeer()->SetData( kControlStaticTextIsMultilineTag, former );
+    
     if ( !EmptyRect( &bestsize ) )
     {
         bounds.h = bestsize.right - bestsize.left ;