]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed small bug in operator=() (comparing equal but not identical objects were not...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Feb 2004 14:07:35 +0000 (14:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Feb 2004 14:07:35 +0000 (14:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/brush.cpp

index 4fc8fb3b6515b0699b0bf012ae4ed60511e328a4..5f497f119c28b409fd9a7aefed4b8b22e6179336 100644 (file)
@@ -248,7 +248,7 @@ wxBrush::~wxBrush()
 
 wxBrush& wxBrush::operator=(const wxBrush& brush)
 {
-    if ( *this != brush )
+    if ( this != &brush )
     {
         Ref(brush);
     }