summaryrefslogtreecommitdiffstats
path: root/basctl/source/dlged
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 /basctl/source/dlged
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 'basctl/source/dlged')
-rw-r--r--basctl/source/dlged/dlgedview.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlgedview.cxx b/basctl/source/dlged/dlgedview.cxx
index e8c28ea017df..c098cb0c1cc0 100644
--- a/basctl/source/dlged/dlgedview.cxx
+++ b/basctl/source/dlged/dlgedview.cxx
@@ -23,6 +23,7 @@
#include <svx/svxids.hrc>
#include <sfx2/viewfrm.hxx>
+#include <vcl/canvastools.hxx>
#include <basidesh.hxx>
#include <iderdll.hxx>
@@ -150,9 +151,7 @@ static SdrObject* impLocalHitCorrection(SdrObject* pRetval, const Point& rPnt, s
if(!aOuterRectangle.IsEmpty())
{
- basegfx::B2DRange aOuterRange(
- aOuterRectangle.Left(), aOuterRectangle.Top(),
- aOuterRectangle.Right(), aOuterRectangle.Bottom());
+ basegfx::B2DRange aOuterRange = vcl::unotools::b2DRectangleFromRectangle(aOuterRectangle);
if(nTol)
{