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; },
......
...@@ -416,6 +416,9 @@ CChartAsGroup.prototype = ...@@ -416,6 +416,9 @@ CChartAsGroup.prototype =
{ {
if ( bEdit ) { if ( bEdit ) {
if ( this.chart.isEqual(chart) )
return;
History.Create_NewPoint(); History.Create_NewPoint();
// type, subType, styleId // type, subType, styleId
......
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