diff options
-rw-r--r-- | vcl/source/helper/canvastools.cxx | 8 |
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 ) |