summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdxcgv.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-01-10 13:51:37 +0000
committerRüdiger Timm <rt@openoffice.org>2006-01-10 13:51:37 +0000
commit9976dcd4fbd48e79e56f404d62fdbc382215186c (patch)
treef9a5b8635f3a942576bacaf0cdd977d6bdfb22ad /svx/source/svdraw/svdxcgv.cxx
parent4a08921b1ccae6982d35d9260797762766f83196 (diff)
INTEGRATION: CWS impresspresobjs (1.24.138); FILE MERGED
2005/11/24 11:39:10 cl 1.24.138.1: #123595# use SdrUndoFactory for creating undo actions
Diffstat (limited to 'svx/source/svdraw/svdxcgv.cxx')
-rw-r--r--svx/source/svdraw/svdxcgv.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx
index 445cfc767bef..7e366374aab2 100644
--- a/svx/source/svdraw/svdxcgv.cxx
+++ b/svx/source/svdraw/svdxcgv.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdxcgv.cxx,v $
*
- * $Revision: 1.24 $
+ * $Revision: 1.25 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 00:43:02 $
+ * last change: $Author: rt $ $Date: 2006-01-10 14:51:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -436,7 +436,7 @@ BOOL SdrExchangeView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjList*
SdrInsertReason aReason(SDRREASON_VIEWCALL);
pDstLst->InsertObject(pNeuObj,CONTAINER_APPEND,&aReason);
- AddUndo(new SdrUndoNewObj(*pNeuObj));
+ AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pNeuObj));
if (bMark) {
// Markhandles noch nicht sofort setzen!
// Das erledigt das ModelHasChanged der MarkView.
@@ -520,7 +520,7 @@ void SdrExchangeView::ImpPasteObject(SdrObject* pObj, SdrObjList& rLst, const Po
pObj->SetLogicRect(aR);
SdrInsertReason aReason(SDRREASON_VIEWCALL);
rLst.InsertObject(pObj,CONTAINER_APPEND,&aReason);
- AddUndo(new SdrUndoNewObj(*pObj));
+ AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pObj));
SdrPageView* pMarkPV=NULL;
for (USHORT nv=0; nv<GetPageViewCount() && pMarkPV==NULL; nv++) {
SdrPageView* pPV=GetPageViewPvNum(nv);