compilation fix after operator==() removal

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-30 22:11:26 +00:00
parent 4de63828af
commit d6dc5c6fdd

View File

@@ -96,14 +96,12 @@ void wxBitmapButton::OnSetBitmap()
bool wxBitmapButton::ChangeBitmap(const wxBitmap& bmp)
{
wxBitmap bitmap = bmp.Ok() ? bmp : m_bmpNormal;
if ( bitmap != m_bitmap )
{
m_bitmap = bitmap;
if ( bitmap.IsSameAs(m_bitmap) )
return false;
return true;
}
m_bitmap = bitmap;
return false;
return true;
}
bool wxBitmapButton::Enable(bool enable)