Fix hebrew character highlight issue in a special document
authorBo Xu <bo_xu@foxitsoftware.com>
Thu, 11 Sep 2014 21:26:42 +0000 (14:26 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Thu, 11 Sep 2014 21:26:42 +0000 (14:26 -0700)
commit56ef173042d786281edcbbc9f1c38c8f97ef10d5
tree67dffa9b0fe1961ef5f041e149c1c6478f52112c
parent12a9940905825e028bebc0bf8d3eddcc65b1933d
Fix hebrew character highlight issue in a special document

There is an image object and text objects in this document, but the character in each text object is reversed.
When rendering, the image object is shown.
However, when highlighting, the text object is selected, resulting in text index issue.
Moreover, the character in the document is in reading order, which is different from normal document.

BUG=pdfium:43
R=jbreiden@google.com

Review URL: https://codereview.chromium.org/484503002
core/src/fpdftext/fpdf_text.cpp
core/src/fpdftext/fpdf_text_int.cpp