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:
@@ -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) );
|
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
|
// If there is a user or actually any scale applied to
|
||||||
// the device context, scale the font.
|
// the device context, scale the font.
|
||||||
|
@@ -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) );
|
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
|
// If there is a user or actually any scale applied to
|
||||||
// the device context, scale the font.
|
// the device context, scale the font.
|
||||||
|
Reference in New Issue
Block a user