diff options
-rw-r--r-- | filter/source/svg/svgexport.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index e73074a4925a..c6611a824667 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -428,6 +428,9 @@ ObjectRepresentation::~ObjectRepresentation() ObjectRepresentation& ObjectRepresentation::operator=( const ObjectRepresentation& rPresentation ) { + // Check for self-assignment + if (this == &rPresentation) + return *this; mxObject = rPresentation.mxObject; delete mpMtf, ( mpMtf = rPresentation.mpMtf ? new GDIMetaFile( *rPresentation.mpMtf ) : NULL ); |