Rounding error.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2003-10-09 19:59:14 +00:00
parent dcf18859bb
commit 4ac717880c
2 changed files with 2 additions and 2 deletions

View File

@@ -1453,7 +1453,7 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
pango_layout_set_text( layout, (const char*)data, strlen((const char*)data) );
if (m_scaleY - 1.0 < 0.00001)
if (abs(m_scaleY - 1.0) < 0.00001)
{
// If there is a user or actually any scale applied to
// the device context, scale the font.

View File

@@ -1453,7 +1453,7 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
pango_layout_set_text( layout, (const char*)data, strlen((const char*)data) );
if (m_scaleY - 1.0 < 0.00001)
if (abs(m_scaleY - 1.0) < 0.00001)
{
// If there is a user or actually any scale applied to
// the device context, scale the font.