summaryrefslogtreecommitdiffstats
path: root/svx/source/svdraw/svdotxdr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdotxdr.cxx')
-rw-r--r--svx/source/svdraw/svdotxdr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdotxdr.cxx b/svx/source/svdraw/svdotxdr.cxx
index ae33a01892f9..a5aae5432817 100644
--- a/svx/source/svdraw/svdotxdr.cxx
+++ b/svx/source/svdraw/svdotxdr.cxx
@@ -29,6 +29,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/range/b2drange.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
+#include <vcl/canvastools.hxx>
#include <vcl/ptrstyle.hxx>
@@ -235,7 +236,7 @@ basegfx::B2DPolyPolygon SdrTextObj::TakeCreatePoly(const SdrDragStat& rDrag) con
aRect1.Justify();
basegfx::B2DPolyPolygon aRetval;
- const basegfx::B2DRange aRange(aRect1.Left(), aRect1.Top(), aRect1.Right(), aRect1.Bottom());
+ const basegfx::B2DRange aRange = vcl::unotools::b2DRectangleFromRectangle(aRect1);
aRetval.append(basegfx::utils::createPolygonFromRect(aRange));
return aRetval;
}