js: Use the API that will include any locally synthesised changes.
authorSebastian Rasmussen <[email protected]>
Wed, 21 Jul 2021 22:53:31 +0000 (00:53 +0200)
committerSebastian Rasmussen <[email protected]>
Thu, 22 Jul 2021 12:55:06 +0000 (14:55 +0200)
source/tools/murun.c

index c80595484a0103d5ff218a8fe40a9d0d155e4530..575423f544244d21b885fc0814528d8e069368a8 100644 (file)
@@ -6224,7 +6224,7 @@ static void ffi_PDFWidget_getValue(js_State *J)
        pdf_widget *widget = js_touserdata(J, 0, "pdf_widget");
        const char *value;
        fz_try(ctx)
-               value = pdf_field_value(ctx, pdf_annot_obj(ctx, widget));
+               value = pdf_annot_field_value(ctx, widget);
        fz_catch(ctx)
                rethrow(J);
        js_pushstring(J, value);