summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdograf.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rwxr-xr-xsvx/source/svdraw/svdograf.cxx24
1 files changed, 15 insertions, 9 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 2e8c65a1e4..e51a2680ce 100755
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -815,24 +815,30 @@ SdrObject* SdrGrafObj::getFullDragClone() const
return pRetval;
}
-void SdrGrafObj::operator=( const SdrObject& rObj )
+SdrGrafObj* SdrGrafObj::Clone() const
{
- SdrRectObj::operator=( rObj );
+ return CloneHelper< SdrGrafObj >();
+}
- const SdrGrafObj& rGraf = (SdrGrafObj&) rObj;
+SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj )
+{
+ if( this == &rObj )
+ return *this;
+ SdrRectObj::operator=( rObj );
- pGraphic->SetGraphic( rGraf.GetGraphic(), &rGraf.GetGraphicObject() );
- aCropRect = rGraf.aCropRect;
- aFileName = rGraf.aFileName;
- aFilterName = rGraf.aFilterName;
- bMirrored = rGraf.bMirrored;
+ pGraphic->SetGraphic( rObj.GetGraphic(), &rObj.GetGraphicObject() );
+ aCropRect = rObj.aCropRect;
+ aFileName = rObj.aFileName;
+ aFilterName = rObj.aFilterName;
+ bMirrored = rObj.bMirrored;
- if( rGraf.pGraphicLink != NULL)
+ if( rObj.pGraphicLink != NULL)
{
SetGraphicLink( aFileName, aFilterName );
}
ImpSetAttrToGrafInfo();
+ return *this;
}
// -----------------------------------------------------------------------------