diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-10-19 21:57:18 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-01-16 15:29:34 +0000 |
commit | 1e3879f7be9384e6c1027f2ac148ddf0754b6b54 (patch) | |
tree | 442ea9aa910e618b1dfadb9033142e1b9b8e2ca9 /sc | |
parent | 4f6a51f93eb9861bcdf38530d6badf8979ad7c36 (diff) |
LOK: Calc: notes: when edit mode begins the text content is misplaced
Change-Id: Ia8efcee6fbeb75dd712d3ac480e355c2972875f3
Reviewed-on: https://gerrit.libreoffice.org/30098
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index f449f7791f3a..b26ac767aae9 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -890,6 +890,20 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI { MapMode aCurrentMapMode(pContentDev->GetMapMode()); pContentDev->SetMapMode(aDrawMode); + + if (bIsTiledRendering) + { + auto aOrigin = aOriginalMode.GetOrigin(); + aOrigin.setX(aOrigin.getX() / TWIPS_PER_PIXEL + aOutputData.nScrX); + aOrigin.setY(aOrigin.getY() / TWIPS_PER_PIXEL + aOutputData.nScrY); + const double twipFactor = 15 * 1.76388889; // 26.45833335 + aOrigin = Point(aOrigin.getX() * twipFactor, + aOrigin.getY() * twipFactor); + MapMode aNew = rDevice.GetMapMode(); + aNew.SetOrigin(aOrigin); + rDevice.SetMapMode(aNew); + } + SdrView* pDrawView = pTabViewShell->GetSdrView(); if(pDrawView) |