From: Jaakko Salli Date: Mon, 10 May 2010 13:54:20 +0000 (+0000) Subject: In wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/465642da29f90bee7865319214a276c64620e077?ds=inline In wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 03037d82b3..65377a464e 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1504,6 +1504,8 @@ void wxGDIPlusContext::GetTextExtent( const wxString &str, wxDouble *width, wxDo m_context->MeasureString((const wchar_t *) s , wcslen(s) , f, layoutRect, &strFormat, &bounds ) ; if ( width ) *width = bounds.Width; + if ( height ) + *height = bounds.Height; } }