diff options
Diffstat (limited to 'svx/source/sdr/contact/viewcontactofsdrcircobj.cxx')
-rw-r--r-- | svx/source/sdr/contact/viewcontactofsdrcircobj.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx b/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx index 8d796643386d..6b1253d57ee0 100644 --- a/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrcircobj.cxx @@ -25,6 +25,7 @@ #include <svl/itemset.hxx> #include <svx/sxciaitm.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> +#include <vcl/canvastools.hxx> namespace sdr @@ -50,10 +51,7 @@ namespace sdr false)); // take unrotated snap rect (direct model data) for position and size - const tools::Rectangle aRectangle(GetCircObj().GetGeoRect()); - const basegfx::B2DRange aObjectRange( - aRectangle.Left(), aRectangle.Top(), - aRectangle.Right(), aRectangle.Bottom() ); + const basegfx::B2DRange aObjectRange = vcl::unotools::b2DRectangleFromRectangle(GetCircObj().GetGeoRect()); const GeoStat& rGeoStat(GetCircObj().GetGeoStat()); // fill object matrix |