Commit fbacb3c1 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

неправильно определялись измененный range при пересчете формул в getNodeDependence.


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56984 954022d7-b5bf-4e40-9824-e11837661b57
parent 419cf1c5
......@@ -603,14 +603,14 @@ DependencyGraph.prototype = {
}
else {
var aEdgeBBox = [];
if ( oSheetRange.range.c1 < oSheetRange.prevRange.c1 )
aEdgeBBox.push( new Asc.Range( oSheetRange.range.c1, oSheetRange.range.r1, oSheetRange.prevRange.c1 - 1, oSheetRange.range.r2 ) );
if ( oSheetRange.range.c2 > oSheetRange.prevRange.c2 )
aEdgeBBox.push( new Asc.Range( oSheetRange.range.c2, oSheetRange.range.r1, oSheetRange.prevRange.c2 + 1, oSheetRange.range.r2 ) );
if ( oSheetRange.range.r1 < oSheetRange.prevRange.r1 )
aEdgeBBox.push( new Asc.Range( oSheetRange.range.c1 + 1, oSheetRange.range.r1, oSheetRange.range.c2 - 1, oSheetRange.prevRange.r1 - 1 ) );
if ( oSheetRange.range.r2 > oSheetRange.prevRange.r2 )
aEdgeBBox.push( new Asc.Range( oSheetRange.range.c1 + 1, oSheetRange.range.r2, oSheetRange.range.c2 - 1, oSheetRange.prevRange.r2 + 1 ) );
if (oSheetRange.range.c1 < oSheetRange.prevRange.c1)
aEdgeBBox.push(new Asc.Range(oSheetRange.range.c1, oSheetRange.range.r1, oSheetRange.prevRange.c1 - 1, oSheetRange.range.r2));
if (oSheetRange.range.c2 > oSheetRange.prevRange.c2)
aEdgeBBox.push(new Asc.Range(oSheetRange.prevRange.c2 + 1, oSheetRange.range.r1, oSheetRange.range.c2, oSheetRange.range.r2));
if (oSheetRange.range.r1 < oSheetRange.prevRange.r1)
aEdgeBBox.push(new Asc.Range(oSheetRange.range.c1 + 1, oSheetRange.range.r1, oSheetRange.range.c2 - 1, oSheetRange.prevRange.r1 - 1));
if (oSheetRange.range.r2 > oSheetRange.prevRange.r2)
aEdgeBBox.push(new Asc.Range(oSheetRange.range.c1 + 1, oSheetRange.prevRange.r2 + 1, oSheetRange.range.c2 - 1, oSheetRange.range.r2));
aAllOuter = [];
for ( var j = 0, length = aEdgeBBox.length; j < length; j++ ) {
var bbox = aEdgeBBox[j];
......
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