From 888af47eec5784c1919200087769b7e58e5efd02 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 7 Jun 2018 19:43:42 +0000 Subject: Rename CPDF_PageObjectHolder::GetFormDict() to GetDict(). Renamed the underlying member m_pFormDict as well. These names are misleading, as a page also uses the same field as the page dict. Change-Id: I52e0f1864a917a1e1b863725cb0d4f22faecacb3 Reviewed-on: https://pdfium-review.googlesource.com/34450 Commit-Queue: Henrique Nakashima Reviewed-by: Ryan Harrison --- fpdfsdk/fpdf_editpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk/fpdf_editpage.cpp') diff --git a/fpdfsdk/fpdf_editpage.cpp b/fpdfsdk/fpdf_editpage.cpp index 094349f694..0a8a74577b 100644 --- a/fpdfsdk/fpdf_editpage.cpp +++ b/fpdfsdk/fpdf_editpage.cpp @@ -58,7 +58,7 @@ bool IsPageObject(CPDF_Page* pPage) { if (!pPage) return false; - const CPDF_Dictionary* pFormDict = pPage->GetFormDict(); + const CPDF_Dictionary* pFormDict = pPage->GetDict(); if (!pFormDict || !pFormDict->KeyExist("Type")) return false; @@ -492,7 +492,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDFPage_SetRotation(FPDF_PAGE page, return; rotate %= 4; - pPage->GetFormDict()->SetNewFor("Rotate", rotate * 90); + pPage->GetDict()->SetNewFor("Rotate", rotate * 90); } FPDF_BOOL FPDFPageObj_SetFillColor(FPDF_PAGEOBJECT page_object, -- cgit v1.2.3