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): ...@@ -57,16 +57,9 @@ def find_charts(archive, path):
deps = get_dependents(archive, rels_path) deps = get_dependents(archive, rels_path)
charts = [] charts = []
for rel in drawing._chart_rels:
for anchor in drawing.twoCellAnchor: chart = get_rel(archive, deps, rel.id, ChartSpace)
if anchor.graphicFrame is not None: chart.anchor = rel.anchor
graphic = anchor.graphicFrame.graphic charts.append(chart)
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
return charts 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