[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Fri Jan 5 14:21:44 UTC 2018
lotuswordpro/source/filter/lwpdoc.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 60b7024e95d6943a113bf58506352bd337f0392e
Author: Caolán McNamara <caolanm at 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 <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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());
More information about the Libreoffice-commits
mailing list