From 270283669b1f53edfce8b96a579e973c5de5f205 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 1 Feb 2018 22:00:33 +0000 Subject: Change internal usages of GetPageIndexDeprecated() to new method. The new GetDestPageIndex() method does the same thing, but has a consistent form of returning an error (returns -1). Bug: pdfium:938 Change-Id: I31583e1c544d9173a28582b849edd5f73c40e174 Reviewed-on: https://pdfium-review.googlesource.com/25070 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- fpdfsdk/fsdk_actionhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fsdk_actionhandler.cpp b/fpdfsdk/fsdk_actionhandler.cpp index 49e00411b8..5999763b9c 100644 --- a/fpdfsdk/fsdk_actionhandler.cpp +++ b/fpdfsdk/fsdk_actionhandler.cpp @@ -362,7 +362,7 @@ void CPDFSDK_ActionHandler::DoAction_GoTo( ASSERT(pPDFDocument); CPDF_Dest MyDest = action.GetDest(pPDFDocument); - int nPageIndex = MyDest.GetPageIndexDeprecated(pPDFDocument); + int nPageIndex = MyDest.GetDestPageIndex(pPDFDocument); int nFitType = MyDest.GetZoomMode(); const CPDF_Array* pMyArray = ToArray(MyDest.GetObject()); std::vector posArray; -- cgit v1.2.3