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
This commit is contained in:
Jaakko Salli
2010-05-10 13:54:20 +00:00
parent a53b5e867b
commit 465642da29

View File

@@ -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;
}
}