From 6c6bf502f996f48bf200c3588cd21b1921756d71 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 8 Feb 2004 14:07:35 +0000 Subject: [PATCH] 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 --- src/msw/brush.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2