summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-07-31 13:11:28 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-31 17:28:17 +0000
commit95e5ac2a9c5a1c5e29ddd6407c2200b840c91a50 (patch)
tree04dc45bf29ded37a9f9deacae9bc59d29ce296a2
parent52f24290b1b3d1620796c50866e7d8016a10807d (diff)
downloadpdfium-95e5ac2a9c5a1c5e29ddd6407c2200b840c91a50.tar.xz
Fix bad change when converting Mid to Left/Right
This specific instance cannot be trivially converted, and thus shouldn't have been touched at all. BUG=750568 Change-Id: Ifc1beb1f34b569d3a5c852fa51d523dadf5f9432 Reviewed-on: https://pdfium-review.googlesource.com/9610 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
-rw-r--r--fpdfsdk/fpdfppo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp
index bc3d769574..beab7d87d3 100644
--- a/fpdfsdk/fpdfppo.cpp
+++ b/fpdfsdk/fpdfppo.cpp
@@ -91,7 +91,7 @@ bool ParserPageRangeString(CFX_ByteString rangstring,
nStringTo = rangstring.Find(',', nStringFrom);
if (nStringTo == -1)
nStringTo = nLength;
- cbMidRange = rangstring.Right(nStringTo - nStringFrom);
+ cbMidRange = rangstring.Mid(nStringFrom, nStringTo - nStringFrom);
int nMid = cbMidRange.Find('-');
if (nMid == -1) {
long lPageNum = atol(cbMidRange.c_str());