Commit 3694729e authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov

Fixed issue #31022 - Вставка строк в XLSX книге не осуществляется и вызывает...

Fixed issue #31022 - Вставка строк в XLSX книге не осуществляется и вызывает ошибку в консоли (http://bugzserver/show_bug.cgi?id=31022)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66563 954022d7-b5bf-4e40-9824-e11837661b57
parent 929e6497
...@@ -294,26 +294,39 @@ ...@@ -294,26 +294,39 @@
}, },
setOffset : function(offset){ setOffset : function(offset){
if ( this.r1 == 0 && this.r2 == gc_nMaxRow0 && offset.offsetRow != 0 || this.c1 == 0 && this.c2 == gc_nMaxCol0 && offset.offsetCol != 0 ) {
return;
}
this.setOffsetFirst(offset); this.setOffsetFirst(offset);
this.setOffsetLast(offset); this.setOffsetLast(offset);
}, },
setOffsetFirst : function(offset){ setOffsetFirst : function(offset){
this.c1 += offset.offsetCol; this.c1 += offset.offsetCol;
if( this.c1 < 0 ) if( this.c1 < 0 ) {
this.c1 = 0; this.c1 = 0;
}
if( this.c1 > gc_nMaxCol0 ) {
this.c1 = gc_nMaxCol0;
}
this.r1 += offset.offsetRow; this.r1 += offset.offsetRow;
if( this.r1 < 0 ) if( this.r1 < 0 )
this.r1 = 0; this.r1 = 0;
if( this.r1 > gc_nMaxRow0 )
this.r1 = gc_nMaxRow0;
}, },
setOffsetLast : function(offset){ setOffsetLast : function(offset){
this.c2 += offset.offsetCol; this.c2 += offset.offsetCol;
if( this.c2 < 0 ) if( this.c2 < 0 )
this.c2 = 0; this.c2 = 0;
if( this.c2 > gc_nMaxCol0 )
this.c2 = gc_nMaxCol0;
this.r2 += offset.offsetRow; this.r2 += offset.offsetRow;
if( this.r2 < 0 ) if( this.r2 < 0 )
this.r2 = 0; this.r2 = 0;
if( this.r2 > gc_nMaxRow0 )
this.r2 = gc_nMaxRow0;
}, },
getName : function() { getName : function() {
......
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