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

memory: из класса Row убрано дублирующее поле r

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60360 954022d7-b5bf-4e40-9824-e11837661b57
parent faccb7f2
...@@ -2912,11 +2912,11 @@ ...@@ -2912,11 +2912,11 @@
this.WriteRow = function(oRow) this.WriteRow = function(oRow)
{ {
var oThis = this; var oThis = this;
if(null != oRow.r) if(null != oRow.index)
{ {
this.memory.WriteByte(c_oSerRowTypes.Row); this.memory.WriteByte(c_oSerRowTypes.Row);
this.memory.WriteByte(c_oSerPropLenType.Long); this.memory.WriteByte(c_oSerPropLenType.Long);
this.memory.WriteLong(oRow.r); this.memory.WriteLong(oRow.index + 1);
} }
if(null != oRow.xfs) if(null != oRow.xfs)
{ {
...@@ -5599,8 +5599,8 @@ ...@@ -5599,8 +5599,8 @@
res = this.bcr.Read2Spreadsheet(length, function(t,l){ res = this.bcr.Read2Spreadsheet(length, function(t,l){
return oThis.ReadRow(t,l, oNewRow, ws); return oThis.ReadRow(t,l, oNewRow, ws);
}); });
if(null != oNewRow.r) if(null != oNewRow.index)
ws.aGCells[oNewRow.r - 1] = oNewRow; ws.aGCells[oNewRow.index] = oNewRow;
} }
else else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
...@@ -5612,10 +5612,9 @@ ...@@ -5612,10 +5612,9 @@
var oThis = this; var oThis = this;
if ( c_oSerRowTypes.Row == type ) if ( c_oSerRowTypes.Row == type )
{ {
oRow.r = this.stream.GetULongLE(); oRow.index = this.stream.GetULongLE() - 1;
oRow.index = oRow.r - 1; if(oRow.index + 1 > ws.nRowsCount)
if(oRow.r > ws.nRowsCount) ws.nRowsCount = oRow.index + 1;
ws.nRowsCount = oRow.r;
} }
else if ( c_oSerRowTypes.Style == type ) else if ( c_oSerRowTypes.Style == type )
{ {
......
...@@ -2405,7 +2405,6 @@ function Row(worksheet) ...@@ -2405,7 +2405,6 @@ function Row(worksheet)
this.sm = this.ws.workbook.oStyleManager; this.sm = this.ws.workbook.oStyleManager;
this.cs = this.ws.workbook.CellStyles; this.cs = this.ws.workbook.CellStyles;
this.c = {}; this.c = {};
this.r = null;
this.index = null; this.index = null;
this.xfs = null; this.xfs = null;
this.h = null; this.h = null;
...@@ -2420,12 +2419,11 @@ Row.prototype = ...@@ -2420,12 +2419,11 @@ Row.prototype =
create : function(row) create : function(row)
{ {
this.index = row - 1; this.index = row - 1;
this.r = row;
this.xfs = null; this.xfs = null;
}, },
moveVer : function(nDif) moveVer : function(nDif)
{ {
this.r += nDif; this.index += nDif;
}, },
isEmpty : function() isEmpty : function()
{ {
...@@ -2454,7 +2452,7 @@ Row.prototype = ...@@ -2454,7 +2452,7 @@ Row.prototype =
if(!oNewWs) if(!oNewWs)
oNewWs = this.ws; oNewWs = this.ws;
var oNewRow = new Row(oNewWs); var oNewRow = new Row(oNewWs);
oNewRow.r = this.r; oNewRow.index = this.index;
if(null != this.xfs) if(null != this.xfs)
oNewRow.xfs = this.xfs.clone(); oNewRow.xfs = this.xfs.clone();
if(null != this.h) if(null != this.h)
......
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