summaryrefslogtreecommitdiff
path: root/platform/ios/common.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/common.m')
-rw-r--r--platform/ios/common.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/common.m b/platform/ios/common.m
index 6ee3653f..80c2c738 100644
--- a/platform/ios/common.m
+++ b/platform/ios/common.m
@@ -20,9 +20,9 @@ static fz_rect hit_bbox[500];
int search_page(fz_document *doc, int number, char *needle, fz_cookie *cookie)
{
fz_page *page = fz_load_page(ctx, doc, number);
-
+ fz_rect mediabox;
fz_stext_sheet *sheet = fz_new_stext_sheet(ctx);
- fz_stext_page *text = fz_new_stext_page(ctx);
+ fz_stext_page *text = fz_new_stext_page(ctx, fz_bound_page(ctx, page, &mediabox));
fz_device *dev = fz_new_stext_device(ctx, sheet, text);
fz_run_page(ctx, page, dev, &fz_identity, cookie);
fz_drop_device(ctx, dev);