summaryrefslogtreecommitdiff
path: root/fxjs/cjs_font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_font.cpp')
-rw-r--r--fxjs/cjs_font.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cjs_font.cpp b/fxjs/cjs_font.cpp
index b4ef66b869..54b392f9a7 100644
--- a/fxjs/cjs_font.cpp
+++ b/fxjs/cjs_font.cpp
@@ -20,13 +20,12 @@ const JSConstSpec CJS_Font::ConstSpecs[] = {
{"CourI", JSConstSpec::String, 0, "Courier-Oblique"},
{"CourBI", JSConstSpec::String, 0, "Courier-BoldOblique"},
{"Symbol", JSConstSpec::String, 0, "Symbol"},
- {"ZapfD", JSConstSpec::String, 0, "ZapfDingbats"},
- {0, JSConstSpec::Number, 0, 0}};
+ {"ZapfD", JSConstSpec::String, 0, "ZapfDingbats"}};
int CJS_Font::ObjDefnID = -1;
// static
void CJS_Font::DefineJSObjects(CFXJS_Engine* pEngine) {
ObjDefnID = pEngine->DefineObj("font", FXJSOBJTYPE_STATIC, nullptr, nullptr);
- DefineConsts(pEngine, ObjDefnID, ConstSpecs);
+ DefineConsts(pEngine, ObjDefnID, ConstSpecs, FX_ArraySize(ConstSpecs));
}