diff options
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r-- | source/tools/murun.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 4f535670..fd6c2c0d 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -4247,7 +4247,7 @@ static void ffi_PDFAnnotation_getInkList(js_State *J) fz_context *ctx = js_getcontext(J); pdf_annot *annot = js_touserdata(J, 0, "pdf_annot"); int i, k, m = 0, n = 0; - float v[2] = { 0 }; + fz_point pt; js_newarray(J); @@ -4265,12 +4265,12 @@ static void ffi_PDFAnnotation_getInkList(js_State *J) js_newarray(J); for (k = 0; k < m; ++k) { fz_try(ctx) - pdf_annot_ink_list_stroke_vertex(ctx, annot, i, k, v); + pt = pdf_annot_ink_list_stroke_vertex(ctx, annot, i, k); fz_catch(ctx) rethrow(J); - js_pushnumber(J, v[0]); + js_pushnumber(J, pt.x); js_setindex(J, -2, k * 2 + 0); - js_pushnumber(J, v[1]); + js_pushnumber(J, pt.y); js_setindex(J, -2, k * 2 + 1); } js_setindex(J, -2, i); |