diff options
author | Lei Zhang <thestig@chromium.org> | 2018-03-15 15:02:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-15 15:02:22 +0000 |
commit | 9875889910585b08d2abd372ddc95469baf1a7e9 (patch) | |
tree | dac7825a580bed8bc2767e4e877c814705e6b783 /fpdfsdk/formfiller/cffl_formfiller.cpp | |
parent | 0a68fd65bb2ced78bc57769cde8ecd16a175c84f (diff) | |
download | pdfium-9875889910585b08d2abd372ddc95469baf1a7e9.tar.xz |
Use Width()/Height() methods from rectangles.
Change-Id: I07f4363046be920816e8d0dae766c7af833284db
Reviewed-on: https://pdfium-review.googlesource.com/28582
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_formfiller.cpp')
-rw-r--r-- | fpdfsdk/formfiller/cffl_formfiller.cpp | 4 |
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); |