diff options
Diffstat (limited to 'fpdfsdk/pwl/cpwl_icon.cpp')
-rw-r--r-- | fpdfsdk/pwl/cpwl_icon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/pwl/cpwl_icon.cpp b/fpdfsdk/pwl/cpwl_icon.cpp index e7669b3d20..52a4464639 100644 --- a/fpdfsdk/pwl/cpwl_icon.cpp +++ b/fpdfsdk/pwl/cpwl_icon.cpp @@ -67,8 +67,8 @@ std::pair<float, float> CPWL_Icon::GetScale() { return {fHScale, fVScale}; CFX_FloatRect rcPlate = GetClientRect(); - float fPlateWidth = rcPlate.right - rcPlate.left; - float fPlateHeight = rcPlate.top - rcPlate.bottom; + float fPlateWidth = rcPlate.Width(); + float fPlateHeight = rcPlate.Height(); float fImageWidth; float fImageHeight; @@ -123,8 +123,8 @@ std::pair<float, float> CPWL_Icon::GetImageOffset() { float fImageFactHeight = fImageHeight * fVScale; CFX_FloatRect rcPlate = GetClientRect(); - float fPlateWidth = rcPlate.right - rcPlate.left; - float fPlateHeight = rcPlate.top - rcPlate.bottom; + float fPlateWidth = rcPlate.Width(); + float fPlateHeight = rcPlate.Height(); return {(fPlateWidth - fImageFactWidth) * fLeft, (fPlateHeight - fImageFactHeight) * fBottom}; |