summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svddrgv.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-01-10 13:48:44 +0000
committerRüdiger Timm <rt@openoffice.org>2006-01-10 13:48:44 +0000
commit276323dd4cec3620c3e688417c49930a2bb77e0e (patch)
treefcf770b67760f3f0c87b9b2ad48b94739cebb317 /svx/source/svdraw/svddrgv.cxx
parenteefbe59ebc0cb86132d9a626675d539134ee546f (diff)
INTEGRATION: CWS impresspresobjs (1.8.138); FILE MERGED
2005/11/24 11:36:01 cl 1.8.138.1: #123595# use SdrUndoFactory for creating undo actions
Diffstat (limited to 'svx/source/svdraw/svddrgv.cxx')
-rw-r--r--svx/source/svdraw/svddrgv.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx
index 39a97143ed95..c69027d945c0 100644
--- a/svx/source/svdraw/svddrgv.cxx
+++ b/svx/source/svdraw/svddrgv.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svddrgv.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 00:25:14 $
+ * last change: $Author: rt $ $Date: 2006-01-10 14:48:44 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -635,7 +635,9 @@ BOOL SdrDragView::BegInsObjPoint(BOOL bIdxZwang, USHORT nIdx, const Point& rPnt,
nMinMov=0;
if (pMarkedObj!=NULL && pMarkedObj->IsPolyObj()) {
BrkAction();
- pInsPointUndo=new SdrUndoGeoObj(*pMarkedObj);
+ pInsPointUndo = dynamic_cast< SdrUndoGeoObj* >( GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pMarkedObj) );
+ DBG_ASSERT( pInsPointUndo, "svx::SdrDragView::BegInsObjPoint(), could not create correct undo object!" );
+
XubString aStr(ImpGetResStr(STR_DragInsertPoint));
XubString aName; pMarkedObj->TakeObjNameSingul(aName);
@@ -736,7 +738,8 @@ BOOL SdrDragView::BegInsGluePoint(const Point& rPnt)
BrkAction();
UnmarkAllGluePoints();
SdrMark* pM=GetSdrMarkByIndex(nMarkNum);
- pInsPointUndo=new SdrUndoGeoObj(*pObj);
+ pInsPointUndo= dynamic_cast< SdrUndoGeoObj* >( GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pObj) );
+ DBG_ASSERT( pInsPointUndo, "svx::SdrDragView::BegInsObjPoint(), could not create correct undo object!" );
XubString aStr(ImpGetResStr(STR_DragInsertGluePoint));
XubString aName; pObj->TakeObjNameSingul(aName);