Kaydet (Commit) 215516a5 authored tarafından Caolán McNamara's avatar Caolán McNamara

protect against missing Ruby Marker

Change-Id: I04809443b5dc50904654936e608360b57c2e85c3
üst 338c6ba3
...@@ -1235,6 +1235,8 @@ void LwpRubyLayout::ConvertContentText() ...@@ -1235,6 +1235,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