From: Vadim Zeitlin Date: Mon, 30 Oct 2006 22:11:26 +0000 (+0000) Subject: compilation fix after operator==() removal X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d6dc5c6fddb736fbf74b708d6d4401325a6e9d69 compilation fix after operator==() removal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/bmpbuttn.cpp b/src/univ/bmpbuttn.cpp index 0230a0674f..2a9f873ccc 100644 --- a/src/univ/bmpbuttn.cpp +++ b/src/univ/bmpbuttn.cpp @@ -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)