Commit 00dbfaee 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@52001 954022d7-b5bf-4e40-9824-e11837661b57
parent 32b8c415
......@@ -845,6 +845,15 @@ function calcAllMargin(isFormatCell,isformatCellScOy,minX,maxX,minY,maxY, chart)
//если очень маленький размер ширины диаграммы
if((bar._chartGutter._left + bar._chartGutter._right) >= (chartCanvas.width - 1))
bar._chartGutter._right += (chartCanvas.width - 1) - (bar._chartGutter._left + bar._chartGutter._right);
if(bar._chartGutter._left < 0 || isNaN(bar._chartGutter._left))
bar._chartGutter._left = 0;
if(bar._chartGutter._top < 0 || isNaN(bar._chartGutter._top))
bar._chartGutter._top = 0;
if(bar._chartGutter._bottom < 0 || isNaN(bar._chartGutter._bottom))
bar._chartGutter._bottom = 0;
if(bar._chartGutter._right < 0 || isNaN(bar._chartGutter._right))
bar._chartGutter._right = 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