summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 12:00:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 12:01:59 +0000
commit168bc7c7cdbf2dd30aac9235b44396c987654504 (patch)
tree8fbdcea6b94e7fd5b7cc5867a869ccfadcf72c13
parent6a9f91915afbcff71121b3485376ab6f1fdcecee (diff)
guard against missing Foundry
Change-Id: Id6961e7c35df56ca37d5cb57c2d3d1e03e31dd6d (cherry picked from commit 92c15e8b299504ef76847cceb5911ef6c7ff26f1)
-rw-r--r--lotuswordpro/source/filter/lwpparastyle.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx
index 18d31f190c25..6870785a4b6b 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