diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 1b11a2874195..5932f59d5a16 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -2836,7 +2836,7 @@ void SwFlyFrmFmt::MakeFrms() if( bAdd ) { - SwFlyFrm *pFly = 0; + SwFlyFrm *pFly; switch( aAnchorAttr.GetAnchorId() ) { case FLY_AT_FLY: @@ -2848,12 +2848,12 @@ void SwFlyFrmFmt::MakeFrms() pFly = new SwFlyAtCntFrm( this, pFrm, pFrm ); break; + default: + assert(false && "Neuer Ankertyp" ); + //fall-through case FLY_AS_CHAR: pFly = new SwFlyInCntFrm( this, pFrm, pFrm ); break; - default: - OSL_ENSURE( false, "Neuer Ankertyp" ); - break; } pFrm->AppendFly( pFly ); SwPageFrm *pPage = pFly->FindPageFrm();