summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/attr/format.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index e3b4639c1ee7..761dc5318b2a 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -214,8 +214,6 @@ SwFormat::~SwFormat()
// ones on DerivedFrom.
if( HasWriterListeners() )
{
- OSL_ENSURE( DerivedFrom(), "SwFormat::~SwFormat: Def dependents!" );
-
m_bFormatInDTOR = true;
SwFormat* pParentFormat = DerivedFrom();
@@ -356,11 +354,11 @@ bool SwFormat::SetDerivedFrom(SwFormat *pDerFrom)
if ( (pDerFrom == DerivedFrom()) || (pDerFrom == this) )
return false;
- OSL_ENSURE( Which()==pDerFrom->Which()
- || ( Which()==RES_CONDTXTFMTCOLL && pDerFrom->Which()==RES_TXTFMTCOLL)
- || ( Which()==RES_TXTFMTCOLL && pDerFrom->Which()==RES_CONDTXTFMTCOLL)
- || ( Which()==RES_FLYFRMFMT && pDerFrom->Which()==RES_FRMFMT ),
- "SetDerivedFrom: derive apples from oranges?");
+ assert( Which()==pDerFrom->Which()
+ || (Which()==RES_CONDTXTFMTCOLL && pDerFrom->Which()==RES_TXTFMTCOLL)
+ || (Which()==RES_TXTFMTCOLL && pDerFrom->Which()==RES_CONDTXTFMTCOLL)
+ || (Which()==RES_FLYFRMFMT && pDerFrom->Which()==RES_FRMFMT)
+ );
if ( IsInCache() )
{