Kaydet (Commit) 7c82e36d authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

protect against missing Ruby Marker

Change-Id: I04809443b5dc50904654936e608360b57c2e85c3
(cherry picked from commit 215516a5)
(cherry picked from commit 6c296afa)
Reviewed-on: https://gerrit.libreoffice.org/20584Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
(cherry picked from commit d0bda255)
üst 2d75df91
...@@ -1242,6 +1242,8 @@ void LwpRubyLayout::ConvertContentText() ...@@ -1242,6 +1242,8 @@ void LwpRubyLayout::ConvertContentText()
void LwpRubyLayout::RegisterStyle() void LwpRubyLayout::RegisterStyle()
{ {
LwpRubyMarker* pMarker = GetMarker(); LwpRubyMarker* pMarker = GetMarker();
if (!pMarker)
throw std::runtime_error("missing Ruby Marker");
XFRubyStyle* pRubyStyle = new XFRubyStyle; XFRubyStyle* pRubyStyle = new XFRubyStyle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment