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);