From: Stefan Csomor Date: Fri, 12 Jan 2007 18:00:01 +0000 (+0000) Subject: making sure it is only breaking at newlines for measuring X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b6930c81303eace9164234a5b5589e1904626eb making sure it is only breaking at newlines for measuring git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index be737ac8be..7610d13c8c 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -78,7 +78,10 @@ wxSize wxStaticText::DoGetBestSize() const Point bounds; // try the built-in best size if available + Boolean former = m_peer->GetData( kControlStaticTextIsMultilineTag); + m_peer->SetData( kControlStaticTextIsMultilineTag, (Boolean)0 ); m_peer->GetBestRect( &bestsize ) ; + m_peer->SetData( kControlStaticTextIsMultilineTag, former ); if ( !EmptyRect( &bestsize ) ) { bounds.h = bestsize.right - bestsize.left ;