Commit 964bec8d authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

fix #18345

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49600 954022d7-b5bf-4e40-9824-e11837661b57
parent 57897419
...@@ -1040,7 +1040,7 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart) { ...@@ -1040,7 +1040,7 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart) {
else else
curSeria = series[l].Val.NumCache; curSeria = series[l].Val.NumCache;
var lastCol = curSeria.length; var lastCol = curSeria.length;
skipSeries[numSeries] = true; skipSeries[l] = true;
var isRow = false; var isRow = false;
if(firstCol == lastCol) if(firstCol == lastCol)
isRow = true; isRow = true;
...@@ -1049,9 +1049,13 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart) { ...@@ -1049,9 +1049,13 @@ function insertChart(chart, activeWorkSheet, width, height, isNewChart) {
{ {
continue; continue;
} }
if(!curSeria.length)
{
continue;
}
if(series[0].xVal.Formula != null && numSeries == 0 && chart.type == 'Scatter') if(series[0].xVal.Formula != null && numSeries == 0 && chart.type == 'Scatter')
l--; l--;
skipSeries[numSeries] = false; skipSeries[l] = false;
arrValues[numSeries] = []; arrValues[numSeries] = [];
arrFormatAdobeLabels[numSeries] = []; arrFormatAdobeLabels[numSeries] = [];
isSkip[numSeries] = true; isSkip[numSeries] = true;
......
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