Index: core/fpdfdoc/cpvt_color.cpp |
diff --git a/core/fpdfdoc/cpvt_color.cpp b/core/fpdfdoc/cpvt_color.cpp |
index afeff23e154663840ac4fab2533b31ea73efcc22..7ddb9df0d083ac719a70c123f4836d60a9285237 100644 |
--- a/core/fpdfdoc/cpvt_color.cpp |
+++ b/core/fpdfdoc/cpvt_color.cpp |
@@ -10,7 +10,7 @@ |
// Static. |
CPVT_Color CPVT_Color::ParseColor(const CFX_ByteString& str) { |
- CPDF_SimpleParser syntax(str); |
+ CPDF_SimpleParser syntax(str.AsByteStringC()); |
if (syntax.FindTagParamFromStart("g", 1)) |
return CPVT_Color(CPVT_Color::kGray, FX_atof(syntax.GetWord())); |