Minor correction to GetTextExtent.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2002-08-13 20:56:40 +00:00
parent 02c0348e97
commit 6c2019b942
2 changed files with 4 additions and 4 deletions

View File

@ -1609,8 +1609,8 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
pango_layout_line_get_extents(line, NULL, &rect);
if (width) (*width) = (wxCoord) rect.width;
if (height) (*height) = (wxCoord) rect.height;
if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
if (descent)
{
// Do something about metrics here

View File

@ -1609,8 +1609,8 @@ void wxWindowDC::DoGetTextExtent(const wxString &string,
pango_layout_line_get_extents(line, NULL, &rect);
if (width) (*width) = (wxCoord) rect.width;
if (height) (*height) = (wxCoord) rect.height;
if (width) (*width) = (wxCoord) (rect.width / PANGO_SCALE);
if (height) (*height) = (wxCoord) (rect.height / PANGO_SCALE);
if (descent)
{
// Do something about metrics here