diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:19:12 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-10 16:14:44 +0100 |
commit | 7c82e36d4af8129123912dd09b5a2a8f8fb8e5fb (patch) | |
tree | 934af1ff38299def42b029e3997850dd914271e8 | |
parent | 2d75df91d24c9eadc9f778356c5bc9d9800cd4c6 (diff) |
protect against missing Ruby Marker
Change-Id: I04809443b5dc50904654936e608360b57c2e85c3
(cherry picked from commit 215516a52fd01170bb4a79828b0f0948884b727a)
(cherry picked from commit 6c296afad6b04328a596a92326aa50b1b480aba0)
Reviewed-on: https://gerrit.libreoffice.org/20584
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit d0bda255ad97d45f68a4d1fb3dcfcf0be4d4c4bc)
-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 a3295c70e014..47a561439faa 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -1242,6 +1242,8 @@ void LwpRubyLayout::ConvertContentText() void LwpRubyLayout::RegisterStyle() { LwpRubyMarker* pMarker = GetMarker(); + if (!pMarker) + throw std::runtime_error("missing Ruby Marker"); XFRubyStyle* pRubyStyle = new XFRubyStyle; |