From 2831eb2dd5694a783d2a6ddf476d0695407c121a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Sep 2005 22:01:58 +0000 Subject: [PATCH] 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 --- src/motif/dcclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motif/dcclient.cpp b/src/motif/dcclient.cpp index b8276477c3..3ab64e3425 100644 --- a/src/motif/dcclient.cpp +++ b/src/motif/dcclient.cpp @@ -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);