From c109362f27679a5b8e56696292d96f9b067691ce Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 21 Feb 2017 16:24:15 +0100 Subject: Fix typo in ffi_PDFAnnotation_setColor. --- source/tools/murun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/tools/murun.c b/source/tools/murun.c index 90b7cd17..25fd0d39 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -3939,7 +3939,7 @@ static void ffi_PDFAnnotation_setColor(js_State *J) if (n != 0 && n != 1 && n != 3 && n != 4) js_error(J, "color must be 0, 1, 3, or 4 components"); for (i = 0; i < n; ++i) { - js_getindex(J, 1, 0); + js_getindex(J, 1, i); color[i] = js_tonumber(J, -1); js_pop(J, 1); } -- cgit v1.2.3