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

Исправлен баг с переходом по результатам поиска между обычным текстом и автофигурой (баг 22014).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51542 954022d7-b5bf-4e40-9824-e11837661b57
parent 38ddc485
......@@ -6672,7 +6672,7 @@ Paragraph.prototype =
if ( true != bBefore )
Pos = Pos + 1;
this.Set_ContentPos( Pos, true, -1 );
this.Set_ContentPos( Pos, false, -1 );
this.RecalculateCurPos();
this.CurPos.RealX = this.CurPos.X;
this.CurPos.RealY = this.CurPos.Y;
......
......@@ -280,6 +280,7 @@ CDocument.prototype.Search_GetId = function(bNext)
return Id;
ParaDrawing.GoTo_Text( true === bNext ? false : true );
this.DrawingObjects.resetSelection();
}
if ( docpostype_Content === this.CurPos.Type )
......@@ -1012,7 +1013,7 @@ Paragraph.prototype.Search_GetId = function(bNext, bCurrent)
var EndPos = Math.min( Pos, this.Content.length - 1 );
// Проверяем автофигуры между StartPos и EndPos
for ( var TempPos = EndPos; TempPos > StartPos; TempPos-- )
for ( var TempPos = EndPos - 1; TempPos >= StartPos; TempPos-- )
{
var Item = this.Content[TempPos];
if ( para_Drawing === Item.Type )
......
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