summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-11-23 12:14:49 +0100
committerJan Holesovsky <kendy@collabora.com>2018-12-10 12:35:43 +0100
commit4a77c309bd44418cb86b30ab88b1e1506b66d4b9 (patch)
treed7aedad1764e80e326c505c8dc3c470d4295fdeb /svx
parent9c5321f577940a0cd78a3af4461e94c4fdb78d63 (diff)
Avoid moving the shape by rotation
The difference between Impress and Writer is the used unit. We can assume that SID_ATTR_TRANSFORM_ROT_X and SID_ATTR_TRANSFORM_ROT_Y contains the values in twips. Change-Id: I44ba9532348200742b2c7c369b89eb2545295684
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedtv1.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx
index c72860a2283f..0d22fdb322b2 100644
--- a/svx/source/svdraw/svdedtv1.cxx
+++ b/svx/source/svdraw/svdedtv1.cxx
@@ -61,7 +61,8 @@
#include <svx/xlnedwit.hxx>
#include <svx/xlnstwit.hxx>
#include <svx/xlnwtit.hxx>
-
+#include <svx/svdview.hxx>
+#include <comphelper/lok.hxx>
// EditView
@@ -1613,6 +1614,15 @@ void SdrEditView::SetGeoAttrToMarked(const SfxItemSet& rAttr)
if(GetSdrPageView())
{
+ const bool bTiledRendering = comphelper::LibreOfficeKit::isActive();
+ if(bTiledRendering) {
+ // We gets the position in twips
+ if (OutputDevice* pOutputDevice = mpMarkedPV->GetView().GetFirstOutputDevice())
+ {
+ if (pOutputDevice->GetMapMode().GetMapUnit() == MapUnit::Map100thMM)
+ aRef = OutputDevice::LogicToLogic(aRef, MapMode(MapUnit::MapTwip), MapMode(MapUnit::Map100thMM));
+ }
+ }
GetSdrPageView()->PagePosToLogic(aRef);
}