Commit dbc43fd1 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с поиском (баг 21677).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51088 954022d7-b5bf-4e40-9824-e11837661b57
parent 6997c5a0
......@@ -671,13 +671,19 @@ CDocument.prototype =
// Останавливаем поиск
if ( this.SearchEngine.Count > 0 && false != this.SearchEngine.ClearOnRecalc )
if ( false != this.SearchEngine.ClearOnRecalc )
{
var bOldSearch = ( this.SearchEngine.Count > 0 ? true : false );
this.SearchEngine.Clear();
editor.sync_SearchEndCallback();
this.DrawingDocument.ClearCachePages();
this.DrawingDocument.FirePaint();
if ( true === bOldSearch )
{
editor.sync_SearchEndCallback();
this.DrawingDocument.ClearCachePages();
this.DrawingDocument.FirePaint();
}
}
// Обновляем позицию курсора
......
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