summaryrefslogtreecommitdiffstats
path: root/emfio
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-05-06 11:33:41 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-05-08 12:42:53 +0200
commitd0119ff7f2c68aa05286bd303128f3a69c6bbd6a (patch)
tree80fc2e52ceb8446997348eda9186cbdfcd247298 /emfio
parentConvert OSL_ENSURE to SAL_WARN (diff)
downloadcore-d0119ff7f2c68aa05286bd303128f3a69c6bbd6a.tar.gz
core-d0119ff7f2c68aa05286bd303128f3a69c6bbd6a.zip
improve tools::Rectangle->basegfx::B2?Rectangle conversion
Improve the conversion method to do something reasonable with empty Rectangle. Use the conversion method in more places. Change-Id: I48c13f3d6dae71f39f03f7939101e545c8125503 Reviewed-on: https://gerrit.libreoffice.org/71853 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/source/reader/mtftools.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index 7ffc9c62bafb..b29b0185ff1e 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -73,14 +73,12 @@ namespace emfio
void WinMtfClipPath::intersectClipRect( const tools::Rectangle& rRect )
{
- maClip.intersectRange(
- vcl::unotools::b2DRectangleFromRectangle(rRect));
+ maClip.intersectRange(vcl::unotools::b2DRectangleFromRectangle(rRect));
}
void WinMtfClipPath::excludeClipRect( const tools::Rectangle& rRect )
{
- maClip.subtractRange(
- vcl::unotools::b2DRectangleFromRectangle(rRect));
+ maClip.subtractRange(vcl::unotools::b2DRectangleFromRectangle(rRect));
}
void WinMtfClipPath::setClipPath( const tools::PolyPolygon& rPolyPolygon, sal_Int32 nClippingMode )