From 7af775a00379e84c0da1ab81695583eb7daaec3a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 21 Aug 2018 20:52:02 +0000 Subject: Change GetEmbbedObj() to return an Optional. Change "EmbbedObj" to "EmbeddedObj". Change-Id: Ia6a8ec45b4563b3ec64b91a10e087dbf32a8d8db Reviewed-on: https://pdfium-review.googlesource.com/40751 Reviewed-by: Ryan Harrison Commit-Queue: Lei Zhang --- xfa/fxfa/cxfa_textlayout.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xfa/fxfa/cxfa_textlayout.cpp') 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 obj = + m_textParser.GetEmbeddedObj(m_pTextProvider, pXMLNode); + if (obj) + wsText = *obj; } } -- cgit v1.2.3