X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45344b388060ed6cb27b494cf553d7223bd3e33b..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/gtk/dataform.h diff --git a/include/wx/gtk/dataform.h b/include/wx/gtk/dataform.h index 1fc8372227..b7c3be71f3 100644 --- a/include/wx/gtk/dataform.h +++ b/include/wx/gtk/dataform.h @@ -1,10 +1,9 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: gtk/dataform.h +// Name: wx/gtk/dataform.h // Purpose: declaration of the wxDataFormat class // Author: Vadim Zeitlin // Modified by: // Created: 19.10.99 (extracted from gtk/dataobj.h) -// RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -30,7 +29,14 @@ public: wxDataFormat( const wxCStrData& id ) { InitFromString(id); } wxDataFormat& operator=(const wxDataFormat& format) - { m_type = format.m_type; m_format = format.m_format; return *this; } + { + if (&format != this) + { + m_type = format.m_type; + m_format = format.m_format; + } + return *this; + } wxDataFormat& operator=(NativeFormat format) { SetId(format); return *this; }