summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-15 12:08:06 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-18 14:06:43 +0000
commitedf886a14f08d8cb58db2a22485da58662d0181b (patch)
tree593c80241cca770913c689441aac577f1c097fb4 /oox
parent24b329855050512e9e5c61ac56f2300b69e38b9e (diff)
oox: coverity#1348468 copy-paste error
Change-Id: Ibea6944c4e61e9848aac936e399ed08192ec5812 (cherry picked from commit 99ab23d26010120e7e6344cb2b26e192890ec5c3) Reviewed-on: https://gerrit.libreoffice.org/21488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shape.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 2dc84e94052d..b744bb142cac 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);
}