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

Bug 29074 - [xls] Ошибка в консоли при открытии документа с диаграммами

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61838 954022d7-b5bf-4e40-9824-e11837661b57
parent 67449e8c
...@@ -2471,6 +2471,11 @@ CChartSpace.prototype = ...@@ -2471,6 +2471,11 @@ CChartSpace.prototype =
var charts, series, i, j, ser; var charts, series, i, j, ser;
charts = this.chart.plotArea.charts; charts = this.chart.plotArea.charts;
var bVert = undefined;
if(this.bbox && this.bbox.seriesBBox && isRealBool(this.bbox.seriesBBox.bVert))
{
bVert = this.bbox.seriesBBox.bVert;
}
for(i = 0; i < charts.length; ++i) for(i = 0; i < charts.length; ++i)
{ {
series = charts[i].series; series = charts[i].series;
...@@ -2483,10 +2488,10 @@ CChartSpace.prototype = ...@@ -2483,10 +2488,10 @@ CChartSpace.prototype =
//val //val
checkValByNumRef(this, ser, ser.val); checkValByNumRef(this, ser, ser.val);
//cat //cat
checkValByNumRef(this, ser, ser.cat, this.bbox.seriesBBox.bVert); checkValByNumRef(this, ser, ser.cat, bVert);
checkCatByNumRef(this, ser, ser.cat, this.bbox.seriesBBox.bVert); checkCatByNumRef(this, ser, ser.cat, bVert);
//tx //tx
checkCatByNumRef(this, ser, ser.tx, !this.bbox.seriesBBox.bVert); checkCatByNumRef(this, ser, ser.tx, isRealBool(bVert) ? !bVert : undefined);
if(ser.isHidden) if(ser.isHidden)
{ {
...@@ -2504,9 +2509,9 @@ CChartSpace.prototype = ...@@ -2504,9 +2509,9 @@ CChartSpace.prototype =
for(j = 0; j < series.length; ++j) for(j = 0; j < series.length; ++j)
{ {
ser = series[j]; ser = series[j];
checkValByNumRef(this, ser, ser.xVal, this.bbox.seriesBBox.bVert); checkValByNumRef(this, ser, ser.xVal, bVert);
checkValByNumRef(this, ser, ser.yVal); checkValByNumRef(this, ser, ser.yVal);
checkCatByNumRef(this, ser, ser.tx, !this.bbox.seriesBBox.bVert); checkCatByNumRef(this, ser, ser.tx, isRealBool(bVert) ? !bVert : undefined);
if(ser.isHidden) if(ser.isHidden)
{ {
......
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