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

правка для #23004

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56016 954022d7-b5bf-4e40-9824-e11837661b57
parent 7399ee22
......@@ -5891,11 +5891,24 @@ var gUndoInsDelCellsFlag = true;
if(splitRef[1])
ref = splitRef[1];
var parseRef = ref.split(":");
if(parseRef[0] && parseRef[1])
{
var startRange = this._idToRange(parseRef[0]);
var endRange = this._idToRange(parseRef[1]);
var range = Asc.Range(startRange.c1, startRange.r1, endRange.c1, endRange.r1);
var startRange, endRange, range;
if(isNaN(parseFloat(parseRef[1])))
{
startRange = this._idToRange(parseRef[0]);
endRange = this._idToRange((this.worksheet.rows.length - 1).toString());
range = Asc.Range(startRange.c1, startRange.r1, endRange.c1, endRange.r1);
}
else
{
startRange = this._idToRange(parseRef[0]);
endRange = this._idToRange(parseRef[1]);
range = Asc.Range(startRange.c1, startRange.r1, endRange.c1, endRange.r1);
};
return range;
}
return false;
......
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