Commit 87bc67dc authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил формирования активного диапазона для добавления диаграммы.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56863 954022d7-b5bf-4e40-9824-e11837661b57
parent 4882878a
......@@ -5410,21 +5410,13 @@ function DrawingObjects() {
if ( !settings )
{
settings = new asc_ChartSettings();
var range = null;
var selectedRange = worksheet.getSelectedRange();
if (selectedRange)
{
var box = selectedRange.getBBox0();
settings.putInColumns(!(box.r2 - box.r1 < box.c2 - box.c1));
var startCell = new CellAddress(box.r1, box.c1, 0);
var endCell = new CellAddress(box.r2, box.c2, 0);
if (startCell && endCell)
{
range = parserHelp.get3DRef(worksheet.model.sName, startCell.getID() === endCell.getID() ?
startCell.getID() : startCell.getID() + ':' + endCell.getID());
}
}
settings.putRange(range);
settings.putRange(worksheet.getSelectionRangeValue());
settings.putStyle(2);
settings.putType(c_oAscChartTypeSettings.lineNormal);
settings.putTitle(c_oAscChartTitleShowSettings.none);
......
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