summaryrefslogtreecommitdiff
path: root/lotuswordpro
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:13:51 +0000
commit338c6ba3a0983009cfd1faff52ac56d6ea092d6f (patch)
tree166081b34582ef4783fd5f680a32bf5cd9a889f8 /lotuswordpro
parentc732a1ae8cc0cc94bfeddba243657a0b9e52a0f9 (diff)
guard against infinite recursion
Change-Id: I43e195df570990f21c780311a98be64b682e5315
Diffstat (limited to 'lotuswordpro')
-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)