lotuswordpro/source/filter/lwpdoc.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 60b7024e95d6943a113bf58506352bd337f0392e
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Jan 5 10:21:11 2018 +0000

    ofz#4966 loop in text styles
    
    Change-Id: If94e32689c6742b2080c213796e27d49ebe6df74
    Reviewed-on: https://gerrit.libreoffice.org/47458
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/lotuswordpro/source/filter/lwpdoc.cxx 
b/lotuswordpro/source/filter/lwpdoc.cxx
index 90fd7374869c..f12838a07095 100644
--- a/lotuswordpro/source/filter/lwpdoc.cxx
+++ b/lotuswordpro/source/filter/lwpdoc.cxx
@@ -237,6 +237,8 @@ void LwpDocument::RegisterTextStyles()
         LwpTextStyle* pParaStyle = dynamic_cast<LwpTextStyle*> 
(pParaStyleHolder->GetHeadID().obj().get());
         while(pParaStyle)
         {
+            if (pParaStyle->GetFoundry())
+                throw std::runtime_error("loop in register text style");
             pParaStyle->SetFoundry(m_pFoundry);
             pParaStyle->RegisterStyle();
             pParaStyle = 
dynamic_cast<LwpParaStyle*>(pParaStyle->GetNext().obj().get());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to