From 97517ef7d26da69b99dc28a8dc3affb788432b9a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 7 Dec 2016 22:21:26 +0100 Subject: sw: convert some OSL_ENSURE to assert in anchoredobject.cxx Change-Id: Ie55fca8526f6a7e1f9bbbc05587812466bc17d67 --- sw/source/core/layout/anchoredobject.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sw') diff --git a/sw/source/core/layout/anchoredobject.cxx b/sw/source/core/layout/anchoredobject.cxx index 20c4a3cb6947..120666ea5f6c 100644 --- a/sw/source/core/layout/anchoredobject.cxx +++ b/sw/source/core/layout/anchoredobject.cxx @@ -807,8 +807,7 @@ Point SwAnchoredObject::GetRelPosToAnchorFrame() const { Point aRelPos; - OSL_ENSURE( GetAnchorFrame(), - " - missing anchor frame." ); + assert(GetAnchorFrame()); aRelPos = GetObjRect().Pos(); aRelPos -= GetAnchorFrame()->Frame().Pos(); @@ -832,10 +831,8 @@ Point SwAnchoredObject::GetRelPosToPageFrame( const bool _bFollowTextFlow, Point aRelPos; _obRelToTableCell = false; - OSL_ENSURE( GetAnchorFrame(), - " - missing anchor frame." ); - OSL_ENSURE( GetAnchorFrame()->FindPageFrame(), - " - missing page frame." ); + assert(GetAnchorFrame()); + assert(GetAnchorFrame()->FindPageFrame()); aRelPos = GetObjRect().Pos(); // --> #i33818# - search for cell frame, if object has to -- cgit