summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-06-26 22:31:11 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-06-29 07:42:17 +0000
commit213f32fc9839fce3b01af938293eca331b544dd3 (patch)
tree8063b14a763e9ba543bc85fe194a6c709e3065d1
parent892a0921f23bddd83a8c9066bfcb4c7338150dd3 (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> Reviewed-on: https://gerrit.libreoffice.org/4611
-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 73d891ba4924..56fd4dd0f2b9 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1931,7 +1931,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;
}
}