summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdpage.cxx')
-rwxr-xr-xsvx/source/svdraw/svdpage.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index d16822984b..0bebd81ea1 100755
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -1422,8 +1422,10 @@ SdrPage::~SdrPage()
DBG_DTOR(SdrPage,NULL);
}
-void SdrPage::operator=(const SdrPage& rSrcPage)
+SdrPage& SdrPage::operator=(const SdrPage& rSrcPage)
{
+ if( this == &rSrcPage )
+ return *this;
if(mpViewContact)
{
delete mpViewContact;
@@ -1490,6 +1492,7 @@ void SdrPage::operator=(const SdrPage& rSrcPage)
// Now copy the contained obejcts (by cloning them)
SdrObjList::operator=(rSrcPage);
+ return *this;
}
SdrPage* SdrPage::Clone() const