From: Vadim Zeitlin Date: Sun, 8 Feb 2004 14:07:35 +0000 (+0000) Subject: fixed small bug in operator=() (comparing equal but not identical objects were not... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6c6bf502f996f48bf200c3588cd21b1921756d71 fixed small bug in operator=() (comparing equal but not identical objects were not assigned though they should be) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/brush.cpp b/src/msw/brush.cpp index 4fc8fb3b65..5f497f119c 100644 --- a/src/msw/brush.cpp +++ b/src/msw/brush.cpp @@ -248,7 +248,7 @@ wxBrush::~wxBrush() wxBrush& wxBrush::operator=(const wxBrush& brush) { - if ( *this != brush ) + if ( this != &brush ) { Ref(brush); }