diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-28 16:25:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-28 16:25:59 +0000 |
commit | c632aa3269aa08457a35e98580fb693a9dacfecd (patch) | |
tree | ef0f30ef01a18103ff481778605cddc1cfbd8189 /lotuswordpro | |
parent | dissolve() needs to delete head now that it's not a list element anymore (diff) | |
download | core-c632aa3269aa08457a35e98580fb693a9dacfecd.tar.gz core-c632aa3269aa08457a35e98580fb693a9dacfecd.zip |
endless loop on corrupt lwp
Change-Id: Ie984d396a6c0055fc5175755fd42161749c572be
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpstory.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpstory.cxx b/lotuswordpro/source/filter/lwpstory.cxx index 6a700be49753..61c91b71bb6c 100644 --- a/lotuswordpro/source/filter/lwpstory.cxx +++ b/lotuswordpro/source/filter/lwpstory.cxx @@ -132,6 +132,8 @@ void LwpStory::RegisterStyle() rtl::Reference<LwpPara> xPara(dynamic_cast<LwpPara*>(GetFirstPara().obj().get())); while (xPara.is()) { + if (xPara->GetFoundry()) + throw std::runtime_error("loop in register style"); xPara->SetFoundry(m_pFoundry); xPara->DoRegisterStyle(); xPara.set(dynamic_cast<LwpPara*>(xPara->GetNext().obj().get())); |