]> git.saurik.com Git - wxWidgets.git/commitdiff
In wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 10 May 2010 13:54:20 +0000 (13:54 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 10 May 2010 13:54:20 +0000 (13:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/graphics.cpp

index 03037d82b39d044476c00cf5e6c19301e86149c5..65377a464ec662a6d0bc10fb399197d21bf6a6ad 100644 (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;
     }
 }