summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/formfiller')
-rw-r--r--fpdfsdk/formfiller/cffl_formfiller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/formfiller/cffl_formfiller.cpp b/fpdfsdk/formfiller/cffl_formfiller.cpp
index d3aa37e4d5..2e2aab9c8f 100644
--- a/fpdfsdk/formfiller/cffl_formfiller.cpp
+++ b/fpdfsdk/formfiller/cffl_formfiller.cpp
@@ -416,8 +416,8 @@ CFX_Matrix CFFL_FormFiller::GetCurMatrix() {
CFX_FloatRect CFFL_FormFiller::GetPDFWindowRect() const {
CFX_FloatRect rectAnnot = m_pWidget->GetPDFAnnot()->GetRect();
- float fWidth = rectAnnot.right - rectAnnot.left;
- float fHeight = rectAnnot.top - rectAnnot.bottom;
+ float fWidth = rectAnnot.Width();
+ float fHeight = rectAnnot.Height();
if ((m_pWidget->GetRotate() / 90) & 0x01)
std::swap(fWidth, fHeight);
return CFX_FloatRect(0, 0, fWidth, fHeight);