This instance will be upgraded to Heptapod 0.31.0rc on 2022-05-19 at 11:00 UTC+2 (a few minutes of down time)

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

Delegate extraction to SpreadsheetDrawing.

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 =
chart = get_rel(archive, deps, id, ChartSpace)
for rel in drawing._chart_rels:
chart = get_rel(archive, deps,, ChartSpace)
chart.anchor = rel.anchor
anchor.graphicFrame = None
chart.anchor = anchor
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