From ebdb3bc7e06d54e06c8415f10277a093a4a1e4df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Oct 2006 22:51:28 +0000 Subject: [PATCH] compilation fix after operator==() removal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk1/window.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index cbb766c42b..08942c4548 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -3412,16 +3412,14 @@ bool wxWindowGTK::SetCursor( const wxCursor &cursor ) { wxCHECK_MSG( (m_widget != NULL), false, wxT("invalid window") ); - if (cursor == m_cursor) + if ( cursor.IsSameAs(m_cursor) ) return false; if (g_isIdle) wxapp_install_idle_handler(); - if (cursor == wxNullCursor) - return wxWindowBase::SetCursor( *wxSTANDARD_CURSOR ); - else - return wxWindowBase::SetCursor( cursor ); + return wxWindowBase::SetCursor( cursor.IsOk() ? cursor + : *wxSTANDARD_CURSOR ); } void wxWindowGTK::WarpPointer( int x, int y ) -- 2.45.2