Commit 0d8fafba authored by SergeyLuzyanin's avatar SergeyLuzyanin

reading charts

parent 68afeb34
...@@ -5902,13 +5902,9 @@ function BinaryPPTYLoader() ...@@ -5902,13 +5902,9 @@ function BinaryPPTYLoader()
_chart.setLocks(_nvGraphicFramePr.locks); _chart.setLocks(_nvGraphicFramePr.locks);
} }
} }
this.map_shapes_by_id[_nvGraphicFramePr.cNvPr.id] = _chart;
_chart.spPr.setXfrm(_xfrm); _chart.spPr.setXfrm(_xfrm);
_xfrm.setParent(_chart.spPr); _xfrm.setParent(_chart.spPr);
_chart.setNvSpPr(_nvGraphicFramePr);
if(AscCommon.isRealObject(_nvGraphicFramePr) && AscFormat.isRealNumber(_nvGraphicFramePr.locks))
{
_chart.setLocks(_nvGraphicFramePr.locks);
}
return _chart; return _chart;
} }
...@@ -5934,9 +5930,7 @@ function BinaryPPTYLoader() ...@@ -5934,9 +5930,7 @@ function BinaryPPTYLoader()
this.ReadCNvPr(prop.cNvPr); this.ReadCNvPr(prop.cNvPr);
if(AscCommon.isRealObject(drawing)) if(AscCommon.isRealObject(drawing))
{ {
if(AscDFH.historyitem_type_Shape === drawing.getObjectType()){ this.map_shapes_by_id[prop.cNvPr.id] = drawing;
this.map_shapes_by_id[prop.cNvPr.id] = drawing;
}
} }
break; break;
} }
......
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