summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-26 09:35:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-26 16:29:13 +0100
commitcd29cab883a6a7a0e028ca6756daa2f3cc8d51f6 (patch)
treed2626221e24b967147e2be18e2b389095d0373b2 /svx/source/xoutdev
parent112645f75816c4902ccf8a2a97ef57e8f13429b8 (diff)
check for self-assign
Change-Id: I6ffaaa36f2e594a2e8155589a4d7000db21ab30b
Diffstat (limited to 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/_xpoly.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx
index 23dec239d7c2..c77992af83fc 100644
--- a/svx/source/xoutdev/_xpoly.cxx
+++ b/svx/source/xoutdev/_xpoly.cxx
@@ -457,6 +457,9 @@ Point& XPolygon::operator[]( sal_uInt16 nPos )
XPolygon& XPolygon::operator=( const XPolygon& rXPoly )
{
+ if (this == &rXPoly)
+ return *this;
+
pImpXPolygon->CheckPointDelete();
rXPoly.pImpXPolygon->nRefCount++;