summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-07-02 09:56:33 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-07-03 09:30:43 +0200
commit7fe52c31531ab3ba0d8ca92d16096861b77db081 (patch)
tree2bd345fdcb71adb47623b82de17047d131a76b90 /sw
parent50b93a183bcdd9981a740a92cd5cc6be77be1973 (diff)
coverity#1309050 pLayout might be 0 here
Change-Id: I5756c033e173faaba373c145b15a07e275453643 (cherry picked from commit ef46186bbab756442db1b7c12cd1902c138c737e)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/frmtool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 6cbc38c36b17..72bfaefa0f79 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -3317,7 +3317,7 @@ SwFrm* GetFrmOfModify( const SwRootFrm* pLayout, SwModify const& rMod, sal_uInt1
{
SwObjectFormatter::FormatObj( *pFlyFrm );
}
- pTmpFrm->Calc(pLayout->GetCurrShell()->GetOut());
+ pTmpFrm->Calc(pLayout ? pLayout->GetCurrShell()->GetOut() : 0);
}
// #127369#