summaryrefslogtreecommitdiff
path: root/source/tools/murun.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-02-21 16:24:15 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-02-21 16:46:43 +0100
commitc109362f27679a5b8e56696292d96f9b067691ce (patch)
treed906a4e92763012c1ebfef87331a9746e6980f5a /source/tools/murun.c
parent273effeec2469a97998c7d2c0147007e6bb04bf2 (diff)
downloadmupdf-c109362f27679a5b8e56696292d96f9b067691ce.tar.xz
Fix typo in ffi_PDFAnnotation_setColor.
Diffstat (limited to 'source/tools/murun.c')
-rw-r--r--source/tools/murun.c2
1 files changed, 1 insertions, 1 deletions
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);
}