[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Thu Dec 10 04:02:37 PST 2015
lotuswordpro/source/filter/lwpparastyle.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 168bc7c7cdbf2dd30aac9235b44396c987654504
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 10 12:00:52 2015 +0000
guard against missing Foundry
Change-Id: Id6961e7c35df56ca37d5cb57c2d3d1e03e31dd6d
(cherry picked from commit 92c15e8b299504ef76847cceb5911ef6c7ff26f1)
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
More information about the Libreoffice-commits
mailing list