diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2022-05-13 14:09:35 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-05-23 10:59:10 +0200 |
commit | f4efaf455136c3a0db8dfd3f1afc0db827192147 (patch) | |
tree | ecc5b0ed1251793e35e84106a0269f53fed39ee2 /oox | |
parent | 6974647815a4bebf57136be9d7cb28d4137e96b3 (diff) |
tdf#66228 PPTX export: fix lost U-shaped connectors
which were replaced with straight connector lines.
The "Line Connector" has no equivalent in OOXML. So far it has
been saved as a "Straight connector". In most cases, the better
solution is to change it to "Standard connector", keeping
the original layout with U-shaped connectors.
Change-Id: I9d6b6174d0556ba2478c6a9837c500b3cc794c82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134284
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/shapes.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index ed129784ba51..284daea2db21 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1662,12 +1662,12 @@ ShapeExport& ShapeExport::WriteConnectorShape( const Reference< XShape >& xShape case ConnectorType_CURVE: sGeometry = "curvedConnector"; break; + case ConnectorType_LINES: case ConnectorType_STANDARD: sGeometry = "bentConnector"; break; default: case ConnectorType_LINE: - case ConnectorType_LINES: sGeometry = "straightConnector1"; break; } @@ -1692,7 +1692,7 @@ ShapeExport& ShapeExport::WriteConnectorShape( const Reference< XShape >& xShape } EscherConnectorListEntry aConnectorEntry( xShape, aStartPoint, rXShapeA, aEndPoint, rXShapeB ); - if (eConnectorType == ConnectorType_CURVE || eConnectorType == ConnectorType_STANDARD) + if (eConnectorType != ConnectorType_LINE) { tools::PolyPolygon aPolyPolygon = EscherPropertyContainer::GetPolyPolygon(xShape); if (aPolyPolygon.Count() > 0) |