Skip to content

Commit

Permalink
tdf#107389: Wrong positioning of AutoFilter buttons in tiledrendering…
Browse files Browse the repository at this point in the history
… mode

Must be a regression from this commit:
9113f17

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>
  • Loading branch information
tzolnai committed May 28, 2017
1 parent 2a3e763 commit ba5a913
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sc/source/ui/view/gridwin4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba5a913

Please sign in to comment.