diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2013-05-08 22:04:34 -0700 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-05-16 19:25:54 +0100 |
commit | 8c3eb4b417ebb3e9bdd0c0ce12ffa4b22fd05621 (patch) | |
tree | 22b0d8ff21c2bd67df5899da78845fe0105319a1 /winrt/mupdfwinrt | |
parent | 165a3528f5a48ba9c4f30d18330875b6070ddf96 (diff) | |
download | mupdf-8c3eb4b417ebb3e9bdd0c0ce12ffa4b22fd05621.tar.xz |
Text search working now. This is done in a similar fashion the the links
Still need a to fix a few minor issues including a progress bar
Diffstat (limited to 'winrt/mupdfwinrt')
-rw-r--r-- | winrt/mupdfwinrt/muctx.cpp | 2 | ||||
-rw-r--r-- | winrt/mupdfwinrt/mudocument.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/winrt/mupdfwinrt/muctx.cpp b/winrt/mupdfwinrt/muctx.cpp index ec10b493..e3d56a0f 100644 --- a/winrt/mupdfwinrt/muctx.cpp +++ b/winrt/mupdfwinrt/muctx.cpp @@ -320,7 +320,7 @@ int muctx::GetTextSearch(int page_num, char* needle, sh_vector_text texts_vec) text_search->upper_left.X = mu_hit_bbox[k].x0; text_search->upper_left.Y = mu_hit_bbox[k].y0; text_search->lower_right.X = mu_hit_bbox[k].x1; - text_search->lower_right.Y = mu_hit_bbox[k].x1; + text_search->lower_right.Y = mu_hit_bbox[k].y1; texts_vec->push_back(text_search); } } diff --git a/winrt/mupdfwinrt/mudocument.cpp b/winrt/mupdfwinrt/mudocument.cpp index fef09612..c38c2096 100644 --- a/winrt/mupdfwinrt/mudocument.cpp +++ b/winrt/mupdfwinrt/mudocument.cpp @@ -194,6 +194,7 @@ int mudocument::ComputeTextSearch(String^ text, int page_num) return num_items; } +/* Returns the kth item for a page after a text search query */ Links^ mudocument::GetTextSearch(int k) { if (k >= this->textsearch->Size) |