diff options
Diffstat (limited to 'xfa/fxfa/cxfa_textlayout.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_textlayout.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_textlayout.cpp b/xfa/fxfa/cxfa_textlayout.cpp index 346a316781..976988ee32 100644 --- a/xfa/fxfa/cxfa_textlayout.cpp +++ b/xfa/fxfa/cxfa_textlayout.cpp @@ -773,7 +773,10 @@ bool CXFA_TextLayout::LoadRichText( while (iTabCount-- > 0) wsText += L'\t'; } else { - m_textParser.GetEmbbedObj(m_pTextProvider, pXMLNode, wsText); + Optional<WideString> obj = + m_textParser.GetEmbeddedObj(m_pTextProvider, pXMLNode); + if (obj) + wsText = *obj; } } |