removed weird comparison of m_oldFont with -1 (this doesn't compile with SGI CC in 64 bit compilation mode and doesn't make any sense anyhow)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-09-17 22:01:58 +00:00
parent a4588fd1df
commit 2831eb2dd5

View File

@ -209,7 +209,7 @@ wxWindowDC::wxWindowDC( wxWindow *window )
wxWindowDC::~wxWindowDC()
{
if (m_gc && (m_oldFont != (WXFont) 0) && ((long) m_oldFont != -1))
if (m_gc && m_oldFont)
{
XSetFont ((Display*) m_display, (GC) m_gc, (Font) m_oldFont);
@ -1415,7 +1415,7 @@ void wxWindowDC::SetFont( const wxFont &font )
if (!m_font.Ok())
{
if ((m_oldFont != (WXFont) 0) && ((wxCoord) m_oldFont != -1))
if (m_oldFont)
{
XSetFont ((Display*) m_display, (GC) m_gc, (Font) m_oldFont);