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:44:25 +0000
commit7af9fea258fe9429d0ff06a705fe294eb36d1c86 (patch)
tree0395154e637023d1ea7c9f95b323625f06edeccf
parent19d08b0c655ff66c2948d6390e32e0ad0a1a67a3 (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/4610
-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;
}
}