diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-14 12:50:42 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-15 06:34:33 +0200 |
commit | 690526f95e3ee4fd25bb2c987e093543e4bc435b (patch) | |
tree | 06b6bb7b6c907fb1876eac1e60b7dac952b21f7b /svx/source/svdraw/svddrgmt.cxx | |
parent | 1dc92b9e9951ef118d2d823d54f9a022c2e41a27 (diff) |
Generalize basegfx::fround for templated return type
And use it when assigning to tools::Long
Change-Id: I0814d7bac9cdd48191ba69c64e3b12a4973b3417
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166071
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/svdraw/svddrgmt.cxx')
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 4bd3c138a7d0..b927f5ebb255 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -3770,15 +3770,15 @@ bool SdrDragCrop::EndSdrDrag(bool /*bCopy*/) // extract the old Rectangle structures tools::Rectangle aOldRect( - basegfx::fround(aRangeOriginalNoShearNoRotate.getMinX()), - basegfx::fround(aRangeOriginalNoShearNoRotate.getMinY()), - basegfx::fround(aRangeOriginalNoShearNoRotate.getMaxX()), - basegfx::fround(aRangeOriginalNoShearNoRotate.getMaxY())); + basegfx::fround<tools::Long>(aRangeOriginalNoShearNoRotate.getMinX()), + basegfx::fround<tools::Long>(aRangeOriginalNoShearNoRotate.getMinY()), + basegfx::fround<tools::Long>(aRangeOriginalNoShearNoRotate.getMaxX()), + basegfx::fround<tools::Long>(aRangeOriginalNoShearNoRotate.getMaxY())); tools::Rectangle aNewRect( - basegfx::fround(aRangeNewNoShearNoRotate.getMinX()), - basegfx::fround(aRangeNewNoShearNoRotate.getMinY()), - basegfx::fround(aRangeNewNoShearNoRotate.getMaxX()), - basegfx::fround(aRangeNewNoShearNoRotate.getMaxY())); + basegfx::fround<tools::Long>(aRangeNewNoShearNoRotate.getMinX()), + basegfx::fround<tools::Long>(aRangeNewNoShearNoRotate.getMinY()), + basegfx::fround<tools::Long>(aRangeNewNoShearNoRotate.getMaxX()), + basegfx::fround<tools::Long>(aRangeNewNoShearNoRotate.getMaxY())); // continue with the old original stuff if (!aOldRect.GetWidth() || !aOldRect.GetHeight()) |