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-07 11:52:34 +0100
commit83b24d74b0934461d89ec40f6bc08f12b7c168a4 (patch)
tree27335a58dc3df983c44ceb7362e4def3fb385325 /svx
parente86f5a07efbb533a072aca841d040771484d388b (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 9b30ccc4417d..25fa84e0520a 100644
--- a/svx/source/svdraw/svdedtv1.cxx
+++ b/svx/source/svdraw/svdedtv1.cxx
@@ -62,7 +62,8 @@
#include <svx/xlnedwit.hxx>
#include <svx/xlnstwit.hxx>
#include <svx/xlnwtit.hxx>
-
+#include <svx/svdview.hxx>
+#include <comphelper/lok.hxx>
// EditView
@@ -1600,6 +1601,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);
}