diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 10:19:12 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-03-01 22:17:04 +0100 |
commit | f5a8ff1353cc09950ba4bfb1b41fb245e99a7c03 (patch) | |
tree | ce082dd1059826287656b8e169029565aacbdbaa | |
parent | cebca5675e9461be59c6873d2feea5c669b07dcc (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; |