diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index f11876f255..05228734f3 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -1352,9 +1352,8 @@ pdfium::Optional<CXFA_Measurement> CXFA_Node::GetDefaultMeasurement( if (!value) return {}; - CXFA_Measurement measure; - memcpy(&measure, *value, sizeof(measure)); - return {measure}; + WideString str = WideString(static_cast<const wchar_t*>(*value)); + return {CXFA_Measurement(str.AsStringView())}; } pdfium::Optional<WideString> CXFA_Node::GetDefaultCData( |