Commit 32e0f42e authored by Sergey Luzyanin's avatar Sergey Luzyanin

Не удалялся старый чарт при смене типа на Scatter

parent ef93d280
...@@ -2961,8 +2961,7 @@ DrawingObjectsController.prototype = ...@@ -2961,8 +2961,7 @@ DrawingObjectsController.prototype =
if(chart_type.getObjectType() !== historyitem_type_ScatterChart) if(chart_type.getObjectType() !== historyitem_type_ScatterChart)
{ {
new_chart_type = new CScatterChart(); new_chart_type = new CScatterChart();
plot_area.addChart(new_chart_type, 0); replaceChart(plot_area, chart_type, new_chart_type);
new_chart_type.setFromOtherChart(chart_type);
for(var j = 0; j < new_chart_type.series.length; ++j) for(var j = 0; j < new_chart_type.series.length; ++j)
{ {
new_chart_type.series[j].setMarker(null); new_chart_type.series[j].setMarker(null);
......
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