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:
@@ -96,14 +96,12 @@ void wxBitmapButton::OnSetBitmap()
|
|||||||
bool wxBitmapButton::ChangeBitmap(const wxBitmap& bmp)
|
bool wxBitmapButton::ChangeBitmap(const wxBitmap& bmp)
|
||||||
{
|
{
|
||||||
wxBitmap bitmap = bmp.Ok() ? bmp : m_bmpNormal;
|
wxBitmap bitmap = bmp.Ok() ? bmp : m_bmpNormal;
|
||||||
if ( bitmap != m_bitmap )
|
if ( bitmap.IsSameAs(m_bitmap) )
|
||||||
{
|
return false;
|
||||||
m_bitmap = bitmap;
|
|
||||||
|
|
||||||
return true;
|
m_bitmap = bitmap;
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxBitmapButton::Enable(bool enable)
|
bool wxBitmapButton::Enable(bool enable)
|
||||||
|
|||||||
Reference in New Issue
Block a user