Kaydet (Commit) 8767b418 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS swqbf34 (1.17.326); FILE MERGED

2005/06/28 09:50:20 od 1.17.326.1: #i45952# <SdrUndoInsertObj::Redo()> - restore anchor position of objects,
         which become members of a group object.
üst 662443ee
......@@ -2,9 +2,9 @@
*
* $RCSfile: svdundo.cxx,v $
*
* $Revision: 1.17 $
* $Revision: 1.18 $
*
* last change: $Author: kz $ $Date: 2005-01-21 18:22:16 $
* last change: $Author: obo $ $Date: 2005-07-08 11:12:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -911,9 +911,30 @@ void SdrUndoInsertObj::Undo()
void SdrUndoInsertObj::Redo()
{
DBG_ASSERT(!pObj->IsInserted(),"RedoInsertObj: pObj ist bereits Inserted");
if (!pObj->IsInserted()) {
if (!pObj->IsInserted())
{
// --> OD 2005-05-10 #i45952# - restore anchor position of an object,
// which becomes a member of a group, because its cleared in method
// <InsertObject(..)>. Needed for correct ReDo in Writer.
Point aAnchorPos( 0, 0 );
if ( pObjList &&
pObjList->GetOwnerObj() &&
pObjList->GetOwnerObj()->ISA(SdrObjGroup) )
{
aAnchorPos = pObj->GetAnchorPos();
}
// <--
SdrInsertReason aReason(SDRREASON_UNDO);
pObjList->InsertObject(pObj,nOrdNum,&aReason);
// --> OD 2005-05-10 #i45952#
if ( aAnchorPos.X() || aAnchorPos.Y() )
{
pObj->NbcSetAnchorPos( aAnchorPos );
}
// <--
if(pObjList->GetOwnerObj() && pObjList->GetOwnerObj()->ISA(E3dObject) && pObj->ISA(E3dObject))
{
E3dScene* pScene = ((E3dObject*)pObjList->GetOwnerObj())->GetScene();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment