Index: xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp |
diff --git a/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp |
index 1b70dffb199696e70eeea74437199f79f626c1cd..da19b381bb848bd3e2db245c1df0837ed1c1990d 100644 |
--- a/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp |
+++ b/xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp |
@@ -74,7 +74,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_HWXY( |
if (iLength >= 2) { |
CFX_ByteString bsUnit = pArguments->GetUTF8String(1); |
if (!bsUnit.IsEmpty()) { |
- wsUnit = CFX_WideString::FromUTF8(bsUnit, bsUnit.GetLength()); |
+ wsUnit = CFX_WideString::FromUTF8(bsUnit.AsByteStringC()); |
} |
} |
if (iLength >= 3) { |
@@ -367,7 +367,7 @@ void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_PageContent( |
} |
if (iLength >= 2) { |
CFX_ByteString bsType = pArguments->GetUTF8String(1); |
- wsType = CFX_WideString::FromUTF8(bsType, bsType.GetLength()); |
+ wsType = CFX_WideString::FromUTF8(bsType.AsByteStringC()); |
} |
if (iLength >= 3) { |
bOnPageArea = pArguments->GetInt32(2) == 0 ? FALSE : TRUE; |