Commit 14a02412 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@55630 954022d7-b5bf-4e40-9824-e11837661b57
parent 7b93682c
......@@ -309,7 +309,7 @@ CChartsDrawer.prototype =
var pxToMM = this.calcProp.pxToMM;
var standartMargin = 13 / pxToMM;
var isHBar = (chartSpace.chart.plotArea.chart.getObjectType() == historyitem_type_BarChart && chartSpace.chart.plotArea.chart.barDir != 1) ? true : false;
var isHBar = (chartSpace.chart.plotArea.chart.getObjectType() == historyitem_type_BarChart && chartSpace.chart.plotArea.chart.barDir === BAR_DIR_BAR) ? true : false;
var calculateLeft = 0, calculateRight = 0, calculateTop = 0, calculateBottom = 0;
if(chartSpace.chart.plotArea.valAx && chartSpace.chart.plotArea.valAx && chartSpace.chart.plotArea.valAx.labels)
......@@ -2926,7 +2926,7 @@ CChartsDrawer.prototype =
}
case historyitem_type_BarChart:
{
if(chartProp.chart.plotArea.chart.barDir == 1)
if(chartProp.chart.plotArea.chart.barDir !== BAR_DIR_BAR)
this.calcProp.type = "Bar";
else
this.calcProp.type = "HBar";
......
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