diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_page.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |