INTEGRATION: CWS impress61 (1.70.136); FILE MERGED
2005/06/27 15:11:54 cl 1.70.136.1: #120379# check for disposed page when creating a xshape
This commit is contained in:
parent
79be3d71d9
commit
ac5731e442
1 changed files with 104 additions and 93 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: unopage.cxx,v $
|
||||
*
|
||||
* $Revision: 1.70 $
|
||||
* $Revision: 1.71 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2005-02-16 17:02:21 $
|
||||
* last change: $Author: kz $ $Date: 2005-07-14 10:45:40 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -1180,6 +1180,11 @@ void SAL_CALL SdGenericDrawPage::removeVetoableChangeListener( const OUString& P
|
|||
|
||||
Reference< drawing::XShape > SdGenericDrawPage::_CreateShape( SdrObject *pObj ) const throw()
|
||||
{
|
||||
DBG_ASSERT( GetPage(), "SdGenericDrawPage::_CreateShape(), can't create shape for disposed page!" );
|
||||
DBG_ASSERT( pObj, "SdGenericDrawPage::_CreateShape(), invalid call with pObj == 0!" );
|
||||
|
||||
if( GetPage() && pObj )
|
||||
{
|
||||
PresObjKind eKind = GetPage()->GetPresObjKind(pObj);
|
||||
|
||||
SvxShape* pShape = NULL;
|
||||
|
@ -1280,6 +1285,12 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape( SdrObject *pObj )
|
|||
// SdXShape aggregiert SvxShape
|
||||
new SdXShape( SvxShape::getImplementation( xShape ), mpModel );
|
||||
return xShape;
|
||||
}
|
||||
else
|
||||
{
|
||||
return SvxFmDrawPage::_CreateShape( pObj );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue