lotuswordpro/qa/cppunit/data/pass/loop-1.lwp  |binary
 lotuswordpro/source/filter/lwpframelayout.cxx |    3 ++-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 9a618946ececbfb975c6a069b4db407646afb853
Author: Caolán McNamara <[email protected]>
Date:   Mon Mar 7 09:25:54 2016 +0000

    lwp: fix infinite recurse
    
    Change-Id: Ibd17c0f68a9bac92e591fd2c998de45a84b372aa
    (cherry picked from commit 0c9c5911b6df0226ef5c8d5465fd02a2bb581eb6)
    Reviewed-on: https://gerrit.libreoffice.org/22976
    Reviewed-by: Michael Stahl <[email protected]>
    Tested-by: Michael Stahl <[email protected]>

diff --git a/lotuswordpro/qa/cppunit/data/pass/loop-1.lwp 
b/lotuswordpro/qa/cppunit/data/pass/loop-1.lwp
new file mode 100644
index 0000000..d610a3e
Binary files /dev/null and b/lotuswordpro/qa/cppunit/data/pass/loop-1.lwp differ
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx 
b/lotuswordpro/source/filter/lwpframelayout.cxx
index 19944f7..5599e85 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -1105,7 +1105,8 @@ void LwpGroupLayout::XFConvertFrame(XFContentContainer* 
pCont, sal_Int32 nStart
 
         //add child frame into group
         LwpVirtualLayout* pLayout = 
dynamic_cast<LwpVirtualLayout*>(GetChildHead().obj().get());
-        while(pLayout)
+
+        while (pLayout && pLayout != this)
         {
             pLayout->XFConvert(pXFFrame);
             pLayout = 
dynamic_cast<LwpVirtualLayout*>(pLayout->GetNext().obj().get());
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to