Commit 0e7995a3 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

for -> while

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57975 954022d7-b5bf-4e40-9824-e11837661b57
parent 4a19fc82
...@@ -9965,7 +9965,7 @@ ...@@ -9965,7 +9965,7 @@
var maxC = this.cols.length - 1; var maxC = this.cols.length - 1;
var maxR = this.rows.length - 1; var maxR = this.rows.length - 1;
var inc = options.scanForward ? +1 : -1; var inc = options.scanForward ? +1 : -1;
var ct, isEqual; var isEqual;
// ToDo стоит переделать это место, т.к. для поиска не нужны измерения, а нужен только сам текст (http://bugzserver/show_bug.cgi?id=26136) // ToDo стоит переделать это место, т.к. для поиска не нужны измерения, а нужен только сам текст (http://bugzserver/show_bug.cgi?id=26136)
this._prepareCellTextMetricsCache(new Asc.Range(0, 0, this.model.getColsCount(), this.model.getRowsCount())); this._prepareCellTextMetricsCache(new Asc.Range(0, 0, this.model.getColsCount(), this.model.getRowsCount()));
...@@ -9985,8 +9985,7 @@ ...@@ -9985,8 +9985,7 @@
} while (!ct); } while (!ct);
return ct; return ct;
} }
while (findNextCell()) {
for (ct = findNextCell(); ct; ct = findNextCell()) {
isEqual = this._isCellEqual(c, r, options); isEqual = this._isCellEqual(c, r, options);
if (null !== isEqual) if (null !== isEqual)
return isEqual; return isEqual;
...@@ -10024,7 +10023,7 @@ ...@@ -10024,7 +10023,7 @@
maxC = this.cols.length - 1; maxC = this.cols.length - 1;
maxR = this.rows.length - 1; maxR = this.rows.length - 1;
} }
for (ct = findNextCell(); ct; ct = findNextCell()) { while (findNextCell()) {
isEqual = this._isCellEqual(c, r, options); isEqual = this._isCellEqual(c, r, options);
if (null !== isEqual) if (null !== isEqual)
return isEqual; return isEqual;
......
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