diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-13 13:39:34 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-13 17:55:25 +0000 |
commit | 469186a47d6ac939acbd80754ed9be5c085bdc22 (patch) | |
tree | 759d491eb8ab13a8e41a229b53f25c7bfccc30c1 /fpdfsdk/cpdfsdk_widget.cpp | |
parent | 8db114ab60439f6d598ec68aa629f4385a532a92 (diff) | |
download | pdfium-469186a47d6ac939acbd80754ed9be5c085bdc22.tar.xz |
Move CPWL_Utils::GetCenterSquare to CFX_FloatRect
This method is working on the FloatRect content so move it to CFX_FloatRect.
Change-Id: I60aabf6e3b86aa9acc59f86cff69347ec5fe5033
Reviewed-on: https://pdfium-review.googlesource.com/7712
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_widget.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp index b7391e6ebc..fc56d7e45b 100644 --- a/fpdfsdk/cpdfsdk_widget.cpp +++ b/fpdfsdk/cpdfsdk_widget.cpp @@ -1273,7 +1273,7 @@ void CPDFSDK_Widget::ResetAppearance_RadioButton() { CFX_ByteString csAP_N_ON; - CFX_FloatRect rcCenter = CPWL_Utils::GetCenterSquare(rcWindow); + CFX_FloatRect rcCenter = rcWindow.GetCenterSquare(); if (!rcCenter.IsEmpty()) { rcCenter.Deflate(1.0f, 1.0f); rcCenter.Normalize(); |