From 465642da29f90bee7865319214a276c64620e077 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Mon, 10 May 2010 13:54:20 +0000 Subject: [PATCH] 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 --- src/msw/graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.45.2