[Libreoffice-commits] core.git: vcl/source
Khaled Hosny
khaledhosny at eglug.org
Fri Dec 30 11:51:36 UTC 2016
vcl/source/helper/canvastools.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit f28d9aaea39f9a2b50c6b9ae36c466771ab72a92
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Fri Dec 30 02:04:47 2016 +0200
Use existing basegfx::fround()
Change-Id: Id3d47212a5efd9367a08b428a39f014819cedf71
Reviewed-on: https://gerrit.libreoffice.org/32505
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny at eglug.org>
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx
index a81ec6b..b66ec69 100644
--- a/vcl/source/helper/canvastools.cxx
+++ b/vcl/source/helper/canvastools.cxx
@@ -344,16 +344,12 @@ namespace vcl
::Point pointFromB2DPoint( const basegfx::B2DPoint& rPoint )
{
- return ::Point( FRound( rPoint.getX() ),
- FRound( rPoint.getY() ) );
+ return pointFromB2IPoint(basegfx::fround(rPoint));
}
::Rectangle rectangleFromB2DRectangle( const basegfx::B2DRange& rRect )
{
- return ::Rectangle( FRound( rRect.getMinX() ),
- FRound( rRect.getMinY() ),
- FRound( rRect.getMaxX() ),
- FRound( rRect.getMaxY() ) );
+ return rectangleFromB2IRectangle(basegfx::fround(rRect));
}
Point pointFromB2IPoint( const basegfx::B2IPoint& rPoint )
More information about the Libreoffice-commits
mailing list