diff options
Diffstat (limited to 'svx/source/svdraw/svdedxv.cxx')
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 938a8fce0fae..6d905b3ba63c 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -28,6 +28,7 @@ #include <svl/whiter.hxx> #include <svl/style.hxx> #include <editeng/editstat.hxx> +#include <vcl/canvastools.hxx> #include <vcl/cursor.hxx> #include <editeng/unotext.hxx> #include <editeng/editdata.hxx> @@ -525,7 +526,7 @@ namespace // check current range const tools::Rectangle aOutArea(mrOutlinerView.GetOutputArea()); - basegfx::B2DRange aNewRange(aOutArea.Left(), aOutArea.Top(), aOutArea.Right(), aOutArea.Bottom()); + basegfx::B2DRange aNewRange = vcl::unotools::b2DRectangleFromRectangle(aOutArea); aNewRange.expand(rMinTextEditArea); if (aNewRange != maRange) @@ -630,9 +631,7 @@ void SdrObjEditView::EditViewInvalidate(const tools::Rectangle&) const if (IsTextEdit()) { // MinTextRange may have changed. Forward it, too - const basegfx::B2DRange aMinTextRange( - aMinTextEditArea.Left(), aMinTextEditArea.Top(), - aMinTextEditArea.Right(), aMinTextEditArea.Bottom()); + const basegfx::B2DRange aMinTextRange = vcl::unotools::b2DRectangleFromRectangle(aMinTextEditArea); for (sal_uInt32 a(0); a < maTEOverlayGroup.count(); a++) { @@ -753,7 +752,7 @@ void SdrObjEditView::ImpPaintOutlinerView(OutlinerView& rOutlView, const tools:: if (xProcessor) { const bool bMapModeEnabled(rTargetDevice.IsMapModeEnabled()); - const basegfx::B2DRange aRange(aPixRect.Left(), aPixRect.Top(), aPixRect.Right(), aPixRect.Bottom()); + const basegfx::B2DRange aRange = vcl::unotools::b2DRectangleFromRectangle(aPixRect); const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer; const Color aHilightColor(aSvtOptionsDrawinglayer.getHilightColor()); const double fTransparence(aSvtOptionsDrawinglayer.GetTransparentSelectionPercent() * 0.01); |