lotuswordpro/source/filter/lwpparastyle.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 92c15e8b299504ef76847cceb5911ef6c7ff26f1
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Dec 10 12:00:52 2015 +0000

    guard against missing Foundry
    
    Change-Id: Id6961e7c35df56ca37d5cb57c2d3d1e03e31dd6d

diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx 
b/lotuswordpro/source/filter/lwpparastyle.cxx
index 18d31f1..6870785 100644
--- a/lotuswordpro/source/filter/lwpparastyle.cxx
+++ b/lotuswordpro/source/filter/lwpparastyle.cxx
@@ -663,6 +663,9 @@ void LwpParaStyle::ApplyTab(XFParaStyle *pParaStyle, 
LwpTabOverride *pTabOverRid
 
 void LwpParaStyle::RegisterStyle()
 {
+    if (!m_pFoundry)
+        throw std::runtime_error("missing Foundry");
+
     XFParaStyle* pStyle = new XFParaStyle();
 
     //Set name
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to