[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - oox/source
Michael Stahl
mstahl at redhat.com
Tue Jan 26 12:04:49 PST 2016
oox/source/drawingml/shape.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 436b1615b271bae46a43530c2dab3a80b4e46419
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Jan 15 12:08:06 2016 +0100
oox: coverity#1348468 copy-paste error
Change-Id: Ibea6944c4e61e9848aac936e399ed08192ec5812
(cherry picked from commit 99ab23d26010120e7e6344cb2b26e192890ec5c3)
Reviewed-on: https://gerrit.libreoffice.org/21489
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 4a9223f..c749846 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -518,7 +518,7 @@ Reference< XShape > Shape::createAndInsert(
const basegfx::B2DPoint& rPreviousPoint = aPoly.getB2DPoint(i - 1);
if (aPoint.getX() - rPreviousPoint.getX() == 0)
aPoint.setX(aPoint.getX() + 1);
- if (aPoint.getY() - rPreviousPoint.getX() == 0)
+ if (aPoint.getY() - rPreviousPoint.getY() == 0)
aPoint.setY(aPoint.getY() + 1);
}
More information about the Libreoffice-commits
mailing list