[Libreoffice-commits] core.git: vcl/source
Tomaž Vajngerl
tomaz.vajngerl at collabora.co.uk
Thu Jan 1 04:06:31 PST 2015
vcl/source/bitmap/bitmapscalesuper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5fa404d1b5da93c9baf8e89a94ddd63d76ae6b9d
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date: Thu Jan 1 21:02:01 2015 +0900
fdo#82870 scale "super" quality degradation bug
Change-Id: I132c046323e1c7805fc7ead6f247732c1843eb24
diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx
index 29819c9..196123a 100644
--- a/vcl/source/bitmap/bitmapscalesuper.cxx
+++ b/vcl/source/bitmap/bitmapscalesuper.cxx
@@ -38,7 +38,7 @@ void generateMap(long nW, long nDstW, bool bHMirr, long* pMapIX, long* pMapFX)
if (bHMirr)
fTemp = nTempX - fTemp;
pMapIX[nX] = MinMax((long) fTemp, 0, nTemp);
- pMapFX[nX] = (long) (fTemp - pMapIX[nX]) * 128.0;
+ pMapFX[nX] = (long) ((fTemp - pMapIX[nX]) * 128.0);
}
}
More information about the Libreoffice-commits
mailing list