diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-12-07 22:21:26 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-12-07 22:45:08 +0100 |
commit | 97517ef7d26da69b99dc28a8dc3affb788432b9a (patch) | |
tree | 8404bafb3a5801a29d7e67d20d1489334c2329a7 /sw | |
parent | c9fc16f8a9b2f267fdea680a67938e3292660e8e (diff) |
sw: convert some OSL_ENSURE to assert in anchoredobject.cxx
Change-Id: Ie55fca8526f6a7e1f9bbbc05587812466bc17d67
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/anchoredobject.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
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(), - "<SwAnchoredObject::GetRelPosToAnchorFrame()> - 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(), - "<SwAnchoredObject::GetRelPosToPageFrame()> - missing anchor frame." ); - OSL_ENSURE( GetAnchorFrame()->FindPageFrame(), - "<SwAnchoredObject::GetRelPosToPageFrame()> - missing page frame." ); + assert(GetAnchorFrame()); + assert(GetAnchorFrame()->FindPageFrame()); aRelPos = GetObjRect().Pos(); // --> #i33818# - search for cell frame, if object has to |