diff --git a/src/osx/cocoa/stattext.mm b/src/osx/cocoa/stattext.mm index efb6e56343..9134d2ef79 100644 --- a/src/osx/cocoa/stattext.mm +++ b/src/osx/cocoa/stattext.mm @@ -48,7 +48,7 @@ Point bounds; { wxClientDC dc(const_cast(this)); wxCoord width, height ; - dc.GetTextExtent( m_label , &width, &height); + dc.GetMultiLineTextExtent( m_label , &width, &height); // Some labels seem to have their last characters // stripped out. Adding 4 pixels seems to be enough to fix this. bounds.h = width+4;