summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/layout/flylay.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/layout/flylay.cxx b/sw/source/core/layout/flylay.cxx
index b2a92969ae4a..c1ae0be1aa23 100644
--- a/sw/source/core/layout/flylay.cxx
+++ b/sw/source/core/layout/flylay.cxx
@@ -1027,6 +1027,12 @@ sal_Bool CalcClipRect( const SdrObject *pSdrObj, SwRect &rRect, sal_Bool bMove )
if ( !bFollowTextFlow || bConsiderWrapOnObjPos )
{
const SwLayoutFrm* pClipFrm = pVertPosOrientFrm->FindPageFrm();
+ if (!pClipFrm)
+ {
+ OSL_FAIL("!pClipFrm: "
+ "if you can reproduce this please file a bug");
+ return false;
+ }
rRect = bMove ? pClipFrm->GetUpper()->Frm()
: pClipFrm->Frm();
// #i26945# - consider that a table, during