diff options
author | Lei Zhang <thestig@chromium.org> | 2017-10-31 13:32:17 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-31 13:32:17 +0000 |
commit | 367e7de07ec33ad045500a04dc2a180390937b27 (patch) | |
tree | 1b286d0be1c9e4db933d31c22aceb92aac7f3f7b /fpdfsdk/fpdf_transformpage.cpp | |
parent | 8aa3002c673f36909560575514b9a9474e5e66bf (diff) | |
download | pdfium-367e7de07ec33ad045500a04dc2a180390937b27.tar.xz |
Add FS_RECTF conversion functions.
Change-Id: I87fb109fdd121716a170df15c4762496c1ccb88c
Reviewed-on: https://pdfium-review.googlesource.com/17210
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_transformpage.cpp')
-rw-r--r-- | fpdfsdk/fpdf_transformpage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_transformpage.cpp b/fpdfsdk/fpdf_transformpage.cpp index e8a2705dd2..dcf19f2be7 100644 --- a/fpdfsdk/fpdf_transformpage.cpp +++ b/fpdfsdk/fpdf_transformpage.cpp @@ -112,8 +112,7 @@ FPDFPage_TransFormWithClip(FPDF_PAGE page, std::ostringstream textBuf; textBuf << "q "; - CFX_FloatRect rect(clipRect->left, clipRect->bottom, clipRect->right, - clipRect->top); + CFX_FloatRect rect = CFXFloatRectFromFSRECTF(*clipRect); rect.Normalize(); ByteString bsClipping; bsClipping.Format("%f %f %f %f re W* n ", rect.left, rect.bottom, |