summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-06-12 16:28:14 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-06-12 16:28:14 +0200
commitb86aa63432a2436563bdcc398577ec4884883434 (patch)
tree749002e3de9d52943898a47f8c57d34c6a09b188 /ios
parentb975f1b82a061db61124d1cf0cd55ab60c22dc8e (diff)
downloadmupdf-b86aa63432a2436563bdcc398577ec4884883434.tar.xz
Support begin/end page calls in text extraction device.
Diffstat (limited to 'ios')
-rw-r--r--ios/main.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/main.m b/ios/main.m
index d1ca130e..5668d415 100644
--- a/ios/main.m
+++ b/ios/main.m
@@ -133,7 +133,7 @@ search_page(fz_document *doc, int number, char *needle, fz_cookie *cookie)
fz_page *page = fz_load_page(doc, number);
fz_text_sheet *sheet = fz_new_text_sheet(ctx);
- fz_text_page *text = fz_new_text_page(ctx, &fz_empty_rect);
+ fz_text_page *text = fz_new_text_page(ctx);
fz_device *dev = fz_new_text_device(ctx, sheet, text);
fz_run_page(doc, page, dev, &fz_identity, cookie);
fz_free_device(dev);