[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Thu Dec 10 02:14:23 PST 2015
lotuswordpro/source/filter/lwpdoc.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 338c6ba3a0983009cfd1faff52ac56d6ea092d6f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 10 10:13:51 2015 +0000
guard against infinite recursion
Change-Id: I43e195df570990f21c780311a98be64b682e5315
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx
index 2eb0c92..4757f10 100644
--- a/lotuswordpro/source/filter/lwpdoc.cxx
+++ b/lotuswordpro/source/filter/lwpdoc.cxx
@@ -540,7 +540,7 @@ LwpDocument* LwpDocument::GetPreviousDivision()
LwpDocument* pDivision = GetLastDivision();
- while(pDivision)
+ while (pDivision && pDivision != this)
{
LwpDocument* pContentDivision = pDivision->GetLastDivisionWithContents();
if(pContentDivision)
More information about the Libreoffice-commits
mailing list