summaryrefslogtreecommitdiff
path: root/svx/source/sdr/contact/objectcontactofpageview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/contact/objectcontactofpageview.cxx')
-rw-r--r--svx/source/sdr/contact/objectcontactofpageview.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx
index 92b0153f072d..3bda11b111f6 100644
--- a/svx/source/sdr/contact/objectcontactofpageview.cxx
+++ b/svx/source/sdr/contact/objectcontactofpageview.cxx
@@ -37,6 +37,7 @@
#include <drawinglayer/processor2d/processor2dtools.hxx>
#include <svx/unoapi.hxx>
#include <unotools/configmgr.hxx>
+#include <vcl/canvastools.hxx>
#include <comphelper/lok.hxx>
#include <eventhandler.hxx>
@@ -179,9 +180,7 @@ namespace sdr
// export, so why not do it always
const tools::Rectangle aLogicClipRectangle(rDisplayInfo.GetRedrawArea().GetBoundRect());
- aViewRange = basegfx::B2DRange(
- aLogicClipRectangle.Left(), aLogicClipRectangle.Top(),
- aLogicClipRectangle.Right(), aLogicClipRectangle.Bottom());
+ aViewRange = vcl::unotools::b2DRectangleFromRectangle(aLogicClipRectangle);
}
}
else
@@ -193,9 +192,7 @@ namespace sdr
{
// get logic clip range and create discrete one
const tools::Rectangle aLogicClipRectangle(rDisplayInfo.GetRedrawArea().GetBoundRect());
- basegfx::B2DRange aLogicClipRange(
- aLogicClipRectangle.Left(), aLogicClipRectangle.Top(),
- aLogicClipRectangle.Right(), aLogicClipRectangle.Bottom());
+ basegfx::B2DRange aLogicClipRange = vcl::unotools::b2DRectangleFromRectangle(aLogicClipRectangle);
basegfx::B2DRange aDiscreteClipRange(aLogicClipRange);
aDiscreteClipRange.transform(rTargetOutDev.GetViewTransformation());