[Libreoffice-commits] core.git: sc/source
Jan Holesovsky
kendy at collabora.com
Tue Feb 21 09:18:51 UTC 2017
sc/source/ui/view/gridwin4.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit ca5277c1ad181c15ce604077e07935b2de946c7c
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Feb 20 12:55:19 2017 +0100
Improve readability.
Change-Id: Ibbbac458e3ef8b3d02f4d73cd8bf3ac880ff0522
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 5f0bbb3..4d1121e 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -808,7 +808,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
if (bIsTiledRendering)
{
MapMode aNew = aOrig;
- auto aOrigin = aOriginalMode.GetOrigin();
+ Point aOrigin = aOriginalMode.GetOrigin();
aOrigin.setX(aOrigin.getX() / TWIPS_PER_PIXEL + nScrX);
aOrigin.setY(aOrigin.getY() / TWIPS_PER_PIXEL + nScrY);
static const double twipFactor = 15 * 1.76388889; // 26.45833335
@@ -874,7 +874,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
if (bIsTiledRendering)
{
- auto aOrigin = aOriginalMode.GetOrigin();
+ Point 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
@@ -943,7 +943,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
Rectangle aBackground(aStart, aEnd);
// Need to draw the background in absolute coords.
- auto aOrigin = aOriginalMode.GetOrigin();
+ Point aOrigin = aOriginalMode.GetOrigin();
aOrigin.setX(aOrigin.getX() / TWIPS_PER_PIXEL + nScreenX);
aOrigin.setY(aOrigin.getY() / TWIPS_PER_PIXEL + nScreenY);
aBackground += aOrigin;
@@ -1007,7 +1007,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
if (bIsTiledRendering)
{
// Need to draw the background in absolute coords.
- auto aOrigin = aOriginalMode.GetOrigin();
+ Point aOrigin = aOriginalMode.GetOrigin();
aOrigin.setX(aOrigin.getX() / TWIPS_PER_PIXEL + nScrX);
aOrigin.setY(aOrigin.getY() / TWIPS_PER_PIXEL + nScrY);
aBackground += aOrigin;
@@ -1018,7 +1018,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
if (bIsTiledRendering)
{
- auto aOrigin = aOriginalMode.GetOrigin();
+ Point aOrigin = aOriginalMode.GetOrigin();
aOrigin.setX(aOrigin.getX() / TWIPS_PER_PIXEL + nScrX);
aOrigin.setY(aOrigin.getY() / TWIPS_PER_PIXEL + nScrY);
static const double twipFactor = 15 * 1.76388889; // 26.45833335
More information about the Libreoffice-commits
mailing list