summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 10:13:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 10:14:11 +0000
commitb3b0854b91033fdab5e67b9333e401490c740ec1 (patch)
tree86873e03ef2e06727eddbb5ac74f9d5102e81c92
parent7e88391273ba60d9a90dbf3b0fb6e14fdc7c372e (diff)
guard against infinite recursion
Change-Id: I43e195df570990f21c780311a98be64b682e5315 (cherry picked from commit 338c6ba3a0983009cfd1faff52ac56d6ea092d6f)
-rw-r--r--lotuswordpro/source/filter/lwpdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx
index 2eb0c9287a61..4757f1025fcb 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)