Commit eae8c270 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 24235 - [ODS] Ошибка в консоли 'length' при открытии таблицы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59703 954022d7-b5bf-4e40-9824-e11837661b57
parent cecc1b98
......@@ -22802,6 +22802,55 @@ CTrendLine.prototype =
this.trendlineType = pr;
},
createDuplicate: function()
{
var c = new CTrendLine();
if(isRealNumber(this.backward))
{
c.setBackward(this.backward);
}
if(isRealBool(this.dispEq))
{
c.setDispEq(this.dispEq);
}
if(isRealBool(this.dispRSqr))
{
c.setDispRSqr(this.dispRSqr);
}
if(isRealNumber(this.forward))
{
c.setForward(this.forward);
}
if(isRealNumber(this.intercept))
{
c.setIntercept(this.intercept);
}
if(typeof this.name === "string")
{
c.setName(this.name);
}
if(isRealNumber(this.order))
{
c.setOrder(this.order);
}
if(isRealNumber(this.period))
{
c.setPeriod(this.period);
}
if(isRealObject(this.spPr))
{
c.setSpPr(this.spPr.createDuplicate());
}
//this.trendlineLbl = null;
if(isRealNumber(this.trendlineType))
{
c.setTrendlineType(this.trendlineType);
}
return c;
},
Undo: function(data)
{
switch (data.Type)
......
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