It sure would be nice if big complicated patches could be tested (or
at least compiled) on all the core platforms before being checked in,
especially in last-minute crunch times.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42765
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return m_refData ? penData && *M_PENDATA == *penData : !penData;
}
- inline bool operator != (const wxPen& pen) const { return *(this == pen); }
+ inline bool operator != (const wxPen& pen) const { return !(*this == pen); }
virtual bool Ok() const { return IsOk(); }
virtual bool IsOk() const { return (m_refData != NULL) ; }
bool operator == ( const wxBrushRefData& brush ) const
{
return m_style == brush.m_style &&
- m_stipple.IsRefTo(&data.m_stipple) &&
+ m_stipple.IsRefTo(&brush.m_stipple) &&
m_colour == brush.m_colour &&
m_macBrushKind == brush.m_macBrushKind &&
m_macThemeBrush == brush.m_macThemeBrush &&
m_macThemeBackground == brush.m_macThemeBackground &&
- m_macThemeBackgroundExtent == brush.m_macThemeBackgroundExtent;
+ EqualRect(&m_macThemeBackgroundExtent, &brush.m_macThemeBackgroundExtent);
}
bool wxWindowMac::SetCursor(const wxCursor& cursor)
{
- if (m_cursor == cursor)
+ if (m_cursor.IsRefTo(&cursor))
return false;
- if (wxNullCursor == cursor)
+ if (!cursor.IsOk())
{
if ( ! wxWindowBase::SetCursor( *wxSTANDARD_CURSOR ) )
return false ;
Rect rect ;
m_peer->GetRect( &rect ) ;
- // auf den umgebenden Rahmen zur\9fck
+ // auf den umgebenden Rahmen zurÂ\9fck
InsetRect( &rect, -1 , -1 ) ;
wxTopLevelWindowMac* top = MacGetTopLevelWindow();