Commit f33f46a9 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

При новом replace нужно очищать старые данные поиска.

Баг http://bugzserver/show_bug.cgi?id=24404

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56352 954022d7-b5bf-4e40-9824-e11837661b57
parent ab5184c8
...@@ -1413,6 +1413,10 @@ ...@@ -1413,6 +1413,10 @@
this.isWholeCell === obj.isWholeCell && this.scanOnOnlySheet === obj.scanOnOnlySheet && this.isWholeCell === obj.isWholeCell && this.scanOnOnlySheet === obj.scanOnOnlySheet &&
this.lookIn === obj.lookIn; this.lookIn === obj.lookIn;
}; };
asc_CFindOptions.prototype.clearFindAll = function () {
this.countFindAll = 0;
this.countReplaceAll = 0;
};
asc_CFindOptions.prototype.updateFindAll = function () { asc_CFindOptions.prototype.updateFindAll = function () {
this.countFindAll += this.countFind; this.countFindAll += this.countFind;
this.countReplaceAll += this.countReplace; this.countReplaceAll += this.countReplace;
......
...@@ -1721,6 +1721,7 @@ ...@@ -1721,6 +1721,7 @@
History.Create_NewPoint(); History.Create_NewPoint();
History.StartTransaction(); History.StartTransaction();
options.clearFindAll();
if (options.isReplaceAll) { if (options.isReplaceAll) {
// На ReplaceAll ставим медленную операцию // На ReplaceAll ставим медленную операцию
this.handlers.trigger("asc_onStartAction", c_oAscAsyncActionType.BlockInteraction, this.handlers.trigger("asc_onStartAction", c_oAscAsyncActionType.BlockInteraction,
......
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