zathura-pdf-mupdf: fix build with mupdf 1.20
This commit is contained in:
parent
ae936a0138
commit
2e63a29860
12
srcpkgs/zathura-pdf-mupdf/patches/mupdf-1.20.0.patch
Normal file
12
srcpkgs/zathura-pdf-mupdf/patches/mupdf-1.20.0.patch
Normal file
@ -0,0 +1,12 @@
|
||||
from https://gitlab.alpinelinux.org/alpine/aports/-/commit/5c2d1886fdead7c00a00ddcd5d04aaa8d1f53377
|
||||
--- a/zathura-pdf-mupdf/search.c
|
||||
+++ b/zathura-pdf-mupdf/search.c
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad);
|
||||
int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
|
||||
- text, hit_bbox, N_SEARCH_RESULTS);
|
||||
+ text, NULL, hit_bbox, N_SEARCH_RESULTS);
|
||||
|
||||
fz_rect r;
|
||||
for (int i = 0; i < num_results; i++) {
|
Loading…
x
Reference in New Issue
Block a user