summaryrefslogtreecommitdiff
path: root/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx')
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx b/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx
index bda8a934109f..80373d8df122 100644
--- a/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrmediaobj.cxx
@@ -23,6 +23,7 @@
#include <sdr/contact/viewobjectcontactofsdrmediaobj.hxx>
#include <drawinglayer/primitive2d/mediaprimitive2d.hxx>
#include <avmedia/mediawindow.hxx>
+#include <vcl/canvastools.hxx>
namespace sdr { namespace contact {
@@ -101,9 +102,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrMediaObj::create
// create range using the model data directly. This is in SdrTextObj::aRect which i will access using
// GetGeoRect() to not trigger any calculations. It's the unrotated geometry which is okay for MediaObjects ATM.
const tools::Rectangle aRectangle(GetSdrMediaObj().GetGeoRect());
- const basegfx::B2DRange aRange(
- aRectangle.Left(), aRectangle.Top(),
- aRectangle.Right(), aRectangle.Bottom());
+ const basegfx::B2DRange aRange = vcl::unotools::b2DRectangleFromRectangle(aRectangle);
// create object transform
basegfx::B2DHomMatrix aTransform;