diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-05-27 22:15:52 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-05-31 17:37:11 +0200 |
commit | ddcd9c3a6e78131d511e91f832ab33c41d41916d (patch) | |
tree | 63c042f67e42a4d02ff4d5da756bacfcf9675892 | |
parent | 27b2d6795edecd38b24cee5f595ee739e1010c94 (diff) |
tdf#107389: Wrong positioning of AutoFilter buttons in tiledrendering mode
Must be a regression from this commit:
9113f17e65b1dafbc178fd269e2967c1e2632f0e
Where the offset's and origin's meaning were changed, but
not all code path was updated accordingly.
Change-Id: Ib519303d5ca5ac7f13e74944e8147ea3220d7684
Reviewed-on: https://gerrit.libreoffice.org/38102
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit ba5a9132375bcfedebd7c3d2500006161800da3b)
Reviewed-on: https://gerrit.libreoffice.org/38280
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 8f5159b19742..74151217831c 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -758,7 +758,10 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI { // Tiled offset nScrX, nScrY MapMode aMap( MapUnit::MapPixel ); - aMap.SetOrigin(Point(nScrX, nScrY)); + Point aOrigin = aOriginalMode.GetOrigin(); + aOrigin.setX(aOrigin.getX() / TWIPS_PER_PIXEL + nScrX); + aOrigin.setY(aOrigin.getY() / TWIPS_PER_PIXEL + nScrY); + aMap.SetOrigin(aOrigin); pContentDev->SetMapMode(aMap); } else |