From 7d865b611bf5b029723ec3143180d23c95c907e8 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 10 Apr 2018 19:29:25 +0000 Subject: Remove CFX_Rect. It is rarely used and FX_RECT is the more common integer rect type. Change-Id: I7c5b875321c2d587becedcd058bb3a57fd1f0b61 Reviewed-on: https://pdfium-review.googlesource.com/30053 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fpdfsdk/fpdfxfa/cpdfxfa_page.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp index f4f6efdd0e..0b4e8f60ee 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp @@ -185,9 +185,10 @@ CFX_Matrix CPDFXFA_Page::GetDisplayMatrix(int xPos, return m_pPDFPage->GetDisplayMatrix(xPos, yPos, xSize, ySize, iRotate); FX_FALLTHROUGH; case FormType::kXFAFull: - if (m_pXFAPageView) - return m_pXFAPageView->GetDisplayMatrix( - CFX_Rect(xPos, yPos, xSize, ySize), iRotate); + if (m_pXFAPageView) { + FX_RECT rect = FX_RECT(xPos, yPos, xPos + xSize, yPos + ySize); + return m_pXFAPageView->GetDisplayMatrix(rect, iRotate); + } break; } -- cgit v1.2.3