diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-05-25 21:57:55 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-25 23:24:14 +0200 |
commit | b6db1e0683c8fac594a606297f16b1fe163ed15b (patch) | |
tree | 894643293c1cccd166e475487618a5b55046c10f /sw | |
parent | import new conditional format information (diff) | |
download | core-b6db1e0683c8fac594a606297f16b1fe163ed15b.tar.gz core-b6db1e0683c8fac594a606297f16b1fe163ed15b.zip |
rhbz#810644: CalcClipRect: add band-aid
No idea what the problem is, perhaps it'll just crash elsewhere now...
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/flylay.cxx | 6 |
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 |