summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-05 11:54:36 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-05 16:20:04 +0100
commit4b5420f88e4dcc442ade5c844cdabd4365ddf8d9 (patch)
treedad846b3ebeeed84f9bd131307a2b44e90551378 /xmloff
parent15aee54bb56982d57c27234a4ae946b45354c310 (diff)
tdf#121172: use first polygon
This was a code reading mistake of me when preparing commit 3040d328c944d91b0cd612d86d358823b5c5b883. Change-Id: I321f1f39e5600fcd786ba6d2e7a4b9444021bcff Reviewed-on: https://gerrit.libreoffice.org/62886 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 3dbb2b5beca6..d022ba3a12b3 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -2055,9 +2055,9 @@ void XMLShapeExport::ImpExportLineShape(
if (auto pSourcePolyPolygon
= o3tl::tryAccess<drawing::PointSequenceSequence>(aAny))
{
- if (pSourcePolyPolygon->getLength() > 1)
+ if (pSourcePolyPolygon->getLength() > 0)
{
- const drawing::PointSequence& rInnerSequence = (*pSourcePolyPolygon)[1];
+ const drawing::PointSequence& rInnerSequence = (*pSourcePolyPolygon)[0];
if (rInnerSequence.getLength() > 0)
{
const awt::Point& rPoint = rInnerSequence[0];