summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/PublicMethods.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/javascript/PublicMethods.cpp')
-rw-r--r--fpdfsdk/javascript/PublicMethods.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp
index af4715987f..775877100e 100644
--- a/fpdfsdk/javascript/PublicMethods.cpp
+++ b/fpdfsdk/javascript/PublicMethods.cpp
@@ -850,9 +850,9 @@ bool CJS_PublicMethods::AFNumber_Format(CJS_Runtime* pRuntime,
CJS_PropValue vProp(pRuntime);
vProp.StartGetting();
- vProp << arColor;
+ vProp.Set(arColor);
vProp.StartSetting();
- fTarget->textColor(pRuntime, vProp, sError); // red
+ fTarget->set_text_color(pRuntime, vProp, &sError); // red
}
}
} else {
@@ -869,7 +869,7 @@ bool CJS_PublicMethods::AFNumber_Format(CJS_Runtime* pRuntime,
CJS_PropValue vProp(pRuntime);
vProp.StartGetting();
- fTarget->textColor(pRuntime, vProp, sError);
+ fTarget->get_text_color(pRuntime, &vProp, &sError);
CJS_Array aProp;
vProp.GetJSValue()->ConvertToArray(pRuntime, aProp);
@@ -882,9 +882,9 @@ bool CJS_PublicMethods::AFNumber_Format(CJS_Runtime* pRuntime,
if (crColor != crProp) {
CJS_PropValue vProp2(pRuntime);
vProp2.StartGetting();
- vProp2 << arColor;
+ vProp2.Set(arColor);
vProp2.StartSetting();
- fTarget->textColor(pRuntime, vProp2, sError);
+ fTarget->set_text_color(pRuntime, vProp2, &sError);
}
}
}