Commit 91960dec authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

isEqual for asc_CChart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50132 954022d7-b5bf-4e40-9824-e11837661b57
parent 47c165b7
...@@ -195,6 +195,20 @@ function asc_CChart(object) { ...@@ -195,6 +195,20 @@ function asc_CChart(object) {
asc_CChart.prototype = { asc_CChart.prototype = {
isEqual: function(chart) {
return ( this.type == chart.type &&
this.subType == chart.subType &&
this.styleId == chart.styleId &&
this.bShowValue == chart.bShowValue &&
this.bShowBorder == chart.bShowBorder &&
this.header.isEqual(chart.header) &&
this.range.isEqual(chart.range) &&
this.xAxis.isEqual(chart.xAxis) &&
this.yAxis.isEqual(chart.yAxis) &&
this.legend.isEqual(chart.legend) &&
this.series.length == chart.series.length);
},
asc_getType: function() { return this.type; }, asc_getType: function() { return this.type; },
asc_setType: function(type) { this.type = type; }, asc_setType: function(type) { this.type = type; },
......
...@@ -415,6 +415,9 @@ CChartAsGroup.prototype = ...@@ -415,6 +415,9 @@ CChartAsGroup.prototype =
setChart: function(chart, bEdit) setChart: function(chart, bEdit)
{ {
if ( bEdit ) { if ( bEdit ) {
if ( this.chart.isEqual(chart) )
return;
History.Create_NewPoint(); History.Create_NewPoint();
......
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