Lines 793-805
Link Here
|
793 |
// handout template |
793 |
// handout template |
794 |
|
794 |
|
795 |
// delete all available handout presentation objects |
795 |
// delete all available handout presentation objects |
796 |
SdrObject* pObj; |
796 |
SdrObject *pObj=NULL; |
797 |
while( (pObj = pMasterPage->GetPresObj(PRESOBJ_HANDOUT)) != 0 ) |
797 |
while( (pObj = pMasterPage->GetPresObj(PRESOBJ_HANDOUT)) != 0 ) |
798 |
{ |
798 |
{ |
|
|
799 |
pMasterPage->RemoveObject(pObj->GetOrdNum()); |
800 |
|
799 |
if( bUndo ) |
801 |
if( bUndo ) |
|
|
802 |
{ |
800 |
pUndoManager->AddUndoAction(pModel->GetSdrUndoFactory().CreateUndoDeleteObject(*pObj)); |
803 |
pUndoManager->AddUndoAction(pModel->GetSdrUndoFactory().CreateUndoDeleteObject(*pObj)); |
801 |
|
804 |
|
802 |
pMasterPage->RemoveObject(pObj->GetOrdNum()); |
805 |
} else |
|
|
806 |
{ |
807 |
SdrObject::Free( pObj ); // memory leak i120050 |
808 |
|
809 |
} |
810 |
|
803 |
} |
811 |
} |
804 |
|
812 |
|
805 |
std::vector< Rectangle > aAreas; |
813 |
std::vector< Rectangle > aAreas; |