diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2025-05-27 22:46:59 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2025-05-28 16:05:03 +0200 |
commit | 353d4309219e9268a31c1c96f943606024df566f (patch) | |
tree | f66322af94a5cab392a4ff22cc1795965f5ab596 | |
parent | 748368b10c24cf21ddd5b4a7fcf0b25ebf39ee4e (diff) |
js/docs: Return null instead of empty array when getting CalloutLine.
-rw-r--r-- | docs/reference/javascript/types/PDFAnnotation.rst | 2 | ||||
-rw-r--r-- | source/tools/murun.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/reference/javascript/types/PDFAnnotation.rst b/docs/reference/javascript/types/PDFAnnotation.rst index 095c8e9e2..3697daf96 100644 --- a/docs/reference/javascript/types/PDFAnnotation.rst +++ b/docs/reference/javascript/types/PDFAnnotation.rst @@ -877,7 +877,7 @@ allow for a graphical line to point to an area on a page. Returns the array of points. - :returns: Array of `Point` + :returns: Array of `Point` | null .. method:: PDFAnnotation.prototype.setCalloutPoint(p) diff --git a/source/tools/murun.c b/source/tools/murun.c index 5af50173f..3e46eb213 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -10986,6 +10986,8 @@ static void ffi_PDFAnnotation_getCalloutLine(js_State *J) js_setindex(J, -2, i); } } + else + js_pushnull(J); } static void ffi_PDFAnnotation_setCalloutLine(js_State *J) |