diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:19:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:19:12 +0000 |
commit | 215516a52fd01170bb4a79828b0f0948884b727a (patch) | |
tree | 06116f260364bdf6e5876fefff6a377cb77ef6e2 | |
parent | 338c6ba3a0983009cfd1faff52ac56d6ea092d6f (diff) |
protect against missing Ruby Marker
Change-Id: I04809443b5dc50904654936e608360b57c2e85c3
-rw-r--r-- | lotuswordpro/source/filter/lwpframelayout.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx index 1182172a1c7a..d15e02450b8f 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -1235,6 +1235,8 @@ void LwpRubyLayout::ConvertContentText() void LwpRubyLayout::RegisterStyle() { LwpRubyMarker* pMarker = GetMarker(); + if (!pMarker) + throw std::runtime_error("missing Ruby Marker"); XFRubyStyle* pRubyStyle = new XFRubyStyle; |