vcl/source/helper/canvastools.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
New commits: commit f28d9aaea39f9a2b50c6b9ae36c466771ab72a92 Author: Khaled Hosny <khaledho...@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 <c...@libreoffice.org> Reviewed-by: Khaled Hosny <khaledho...@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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits