diff options
Diffstat (limited to 'svx/source/sdr/contact/viewcontactofunocontrol.cxx')
-rw-r--r-- | svx/source/sdr/contact/viewcontactofunocontrol.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/svx/source/sdr/contact/viewcontactofunocontrol.cxx b/svx/source/sdr/contact/viewcontactofunocontrol.cxx index 547e2ebc5339..78bdce4d6c2e 100644 --- a/svx/source/sdr/contact/viewcontactofunocontrol.cxx +++ b/svx/source/sdr/contact/viewcontactofunocontrol.cxx @@ -21,7 +21,7 @@ #include <sdr/contact/viewcontactofunocontrol.hxx> #include <sdr/contact/viewobjectcontactofunocontrol.hxx> -#include <sdr/contact/objectcontactofpageview.hxx> +#include <svx/sdr/contact/objectcontactofpageview.hxx> #include <svx/sdr/contact/displayinfo.hxx> #include <svx/svdouno.hxx> #include <svx/svdpagv.hxx> @@ -94,12 +94,7 @@ namespace sdr { namespace contact { // create range. Use model data directly, not getBoundRect()/getSnapRect; these will use // the primitive data themselves in the long run. Use SdrUnoObj's (which is a SdrRectObj) // call to GetGeoRect() to access SdrTextObj::aRect directly and without executing anything - tools::Rectangle aRectangle(GetSdrUnoObj().GetGeoRect()); - // Hack for calc, transform position of object according - // to current zoom so as objects relative position to grid - // appears stable - Point aGridOffset = GetSdrUnoObj().GetGridOffset(); - aRectangle += aGridOffset; + const tools::Rectangle aRectangle(GetSdrUnoObj().GetGeoRect()); const basegfx::B2DRange aRange( aRectangle.Left(), aRectangle.Top(), aRectangle.Right(), aRectangle.Bottom()); |