compilation fix after operator==() removal

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-30 22:51:28 +00:00
parent ba518e2cb9
commit ebdb3bc7e0

View File

@@ -3412,16 +3412,14 @@ bool wxWindowGTK::SetCursor( const wxCursor &cursor )
{ {
wxCHECK_MSG( (m_widget != NULL), false, wxT("invalid window") ); wxCHECK_MSG( (m_widget != NULL), false, wxT("invalid window") );
if (cursor == m_cursor) if ( cursor.IsSameAs(m_cursor) )
return false; return false;
if (g_isIdle) if (g_isIdle)
wxapp_install_idle_handler(); wxapp_install_idle_handler();
if (cursor == wxNullCursor) return wxWindowBase::SetCursor( cursor.IsOk() ? cursor
return wxWindowBase::SetCursor( *wxSTANDARD_CURSOR ); : *wxSTANDARD_CURSOR );
else
return wxWindowBase::SetCursor( cursor );
} }
void wxWindowGTK::WarpPointer( int x, int y ) void wxWindowGTK::WarpPointer( int x, int y )