Read about our upcoming Code of Conduct on this issue

Commit 14fc9dfe authored by CharlieC's avatar CharlieC
Browse files

Delegate extraction to SpreadsheetDrawing.

--HG--
branch : 2.5
parent 063abafc12d4
......@@ -57,16 +57,9 @@ def find_charts(archive, path):
deps = get_dependents(archive, rels_path)
charts = []
for anchor in drawing.twoCellAnchor:
if anchor.graphicFrame is not None:
graphic = anchor.graphicFrame.graphic
if graphic.graphicData is not None:
id = graphic.graphicData.chart.id
chart = get_rel(archive, deps, id, ChartSpace)
charts.append(chart)
anchor.graphicFrame = None
chart.anchor = anchor
for rel in drawing._chart_rels:
chart = get_rel(archive, deps, rel.id, ChartSpace)
chart.anchor = rel.anchor
charts.append(chart)
return charts
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment