Commit 8b60d4f1 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 30260 - Множественные ошибки в консоли после изменении фона диаграммы на...

Bug 30260 - Множественные ошибки в консоли после изменении фона диаграммы на прозрачный и последующего обращения к канве
Поправлена проблема с открытием в Excel'е сохраненного нами файла с диаграммой, содержащей несколько чартов в plotArea/

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64555 954022d7-b5bf-4e40-9824-e11837661b57
parent 84ad430d
...@@ -1505,9 +1505,16 @@ DrawingObjectsController.prototype = ...@@ -1505,9 +1505,16 @@ DrawingObjectsController.prototype =
setCellBackgroundColor: function (color) setCellBackgroundColor: function (color)
{ {
var fill = new asc_CShapeFill(); var fill = new asc_CShapeFill();
if(color)
{
fill.type = c_oAscFill.FILL_TYPE_SOLID; fill.type = c_oAscFill.FILL_TYPE_SOLID;
fill.fill = new asc_CFillSolid(); fill.fill = new asc_CFillSolid();
fill.fill.color = color; fill.fill.color = color;
}
else
{
fill.type = c_oAscFill.FILL_TYPE_NOFILL;
}
this.checkSelectedObjectsAndCallback(this.applyDrawingProps, [{fill: fill}], false, historydescription_Spreadsheet_SetCellBackgroundColor); this.checkSelectedObjectsAndCallback(this.applyDrawingProps, [{fill: fill}], false, historydescription_Spreadsheet_SetCellBackgroundColor);
}, },
...@@ -2239,6 +2246,7 @@ DrawingObjectsController.prototype = ...@@ -2239,6 +2246,7 @@ DrawingObjectsController.prototype =
var chart_type = plot_area.charts[0]; var chart_type = plot_area.charts[0];
plot_area.removeCharts(1, plot_area.charts.length - 1);
//Data Labels //Data Labels
var i; var i;
var type = chartSettings.getType(); var type = chartSettings.getType();
...@@ -2571,7 +2579,6 @@ DrawingObjectsController.prototype = ...@@ -2571,7 +2579,6 @@ DrawingObjectsController.prototype =
{ {
new_chart_type = new CScatterChart(); new_chart_type = new CScatterChart();
plot_area.addChart(new_chart_type, 0); plot_area.addChart(new_chart_type, 0);
plot_area.removeCharts(1, plot_area.charts.length - 1);
new_chart_type.setFromOtherChart(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)
{ {
......
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