summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-12-30 02:04:47 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-12-30 11:51:13 +0000
commitf28d9aaea39f9a2b50c6b9ae36c466771ab72a92 (patch)
tree09ea7fcb53b41013097c8e8b19e194fb9968bb04
parentd8a9d483898d94868bc502d52f0fcd166d18959f (diff)
Use existing basegfx::fround()
Change-Id: Id3d47212a5efd9367a08b428a39f014819cedf71 Reviewed-on: https://gerrit.libreoffice.org/32505 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
-rw-r--r--vcl/source/helper/canvastools.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx
index a81ec6b65c93..b66ec69a6ea0 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 )