summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-06-26 22:31:11 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-06-28 09:22:31 +0000
commit296c2af27a189e8406957ac44eb412ec3f9a74fd (patch)
treeb97478e2b0d06fafab5455d3272866a44c26a09c /sw
parent344d80ee1d3829b28c18135ac4f0500d4b69aedd (diff)
fdo#66101: lowriter crashed when trying to open .docx file
Change-Id: I516bcb4bc18806d5a83f94c0776bd0f918a1e927 Reviewed-on: https://gerrit.libreoffice.org/4550 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
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 91239873e537..06dc22cd320f 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1913,7 +1913,7 @@ static bool lcl_hasTabFrm(const SwTxtFrm* pTxtFrm)
if (pObject->IsA(TYPE(SwFlyFrm)))
{
SwFlyFrm* pFly = (SwFlyFrm*)pObject;
- if (pFly->Lower()->IsTabFrm())
+ if (pFly->Lower() && pFly->Lower()->IsTabFrm())
return true;
}
}