summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/flycnt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx
index 7b06f096c689..062633883ccf 100644
--- a/sw/source/core/layout/flycnt.cxx
+++ b/sw/source/core/layout/flycnt.cxx
@@ -642,7 +642,7 @@ static const SwFrm * lcl_CalcDownDist( SwDistance &rRet,
{
bSct = false;
const SwSectionFrm* pNxtSect = pLay ? pLay->FindSctFrm() : 0;
- if( pSect->IsAnFollow( pNxtSect ) )
+ if (pSect->IsAnFollow(pNxtSect) && pLay)
{
if( pLay->IsVertical() )
{