Commit 3c1c6758 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

не осуществлялась вставка пустой диаграммы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56852 954022d7-b5bf-4e40-9824-e11837661b57
parent f32b4688
...@@ -2678,7 +2678,7 @@ CChartsDrawer.prototype = ...@@ -2678,7 +2678,7 @@ CChartsDrawer.prototype =
step = step * firstDegree.numPow; step = step * firstDegree.numPow;
}; };
if(isNaN(step)) if(isNaN(step) || step === 0)
{ {
if('HBar' == this.calcProp.type && this.calcProp.subType == 'stackedPer') if('HBar' == this.calcProp.type && this.calcProp.subType == 'stackedPer')
arrayValues = [0, 0.2, 0.4, 0.6, 0.8, 1]; arrayValues = [0, 0.2, 0.4, 0.6, 0.8, 1];
...@@ -3638,7 +3638,7 @@ CChartsDrawer.prototype = ...@@ -3638,7 +3638,7 @@ CChartsDrawer.prototype =
} }
else if(0 != secPart[0]) else if(0 != secPart[0])
numPow = Math.pow(10, secPart[0].toString().length - 1) numPow = Math.pow(10, secPart[0].toString().length - 1)
else if(0 == secPart[0]) else if(0 == secPart[0] && secPart[1] != undefined)
{ {
var tempMax = val; var tempMax = val;
var num = 0; var num = 0;
......
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