From 5a2123376dc010ca4e3f0a19d7dbbfaeb25ea963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 21 Aug 2014 12:59:50 +0100 Subject: [PATCH] avoid crash on document ending before contained table ends Change-Id: I003b7e00673cd5a4b4f0ed5218e2d30cfef04ffb --- sw/source/filter/ww8/ww8par.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 0029154786bd..c065d8ff6597 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -5350,6 +5350,8 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss, const SwPosition &rPos) UpdatePageDescs(rDoc, nPageDescOffset); + SAL_WARN_IF(mpTableEndPaM, "sw.ww8", "document ended without table ending"); + mpTableEndPaM.reset(); //ensure this is deleted before pPaM delete pPaM, pPaM = 0; return nErrRet; }