From 95e5ac2a9c5a1c5e29ddd6407c2200b840c91a50 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Mon, 31 Jul 2017 13:11:28 -0400 Subject: 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 Commit-Queue: Ryan Harrison --- fpdfsdk/fpdfppo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3