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

Исправлен баг с определением текущей страницы в колонтитуле, исправлен баг с...

Исправлен баг с определением текущей страницы в колонтитуле, исправлен баг с переходом вверх-вниз по клавишам в колонтитуле (баг 28203).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64633 954022d7-b5bf-4e40-9824-e11837661b57
parent 25acf0df
......@@ -2372,7 +2372,7 @@ CDocument.prototype =
if (true === this.TurnOffRecalcCurPos)
return;
if ( true === CollaborativeEditing.m_bGlobalLockSelection )
if (true === CollaborativeEditing.m_bGlobalLockSelection)
return;
if (docpostype_HdrFtr === this.CurPos.Type)
......@@ -2381,16 +2381,16 @@ CDocument.prototype =
if (null !== CurHdrFtr && -1 !== CurHdrFtr.RecalcInfo.CurPage)
this.CurPage = CurHdrFtr.RecalcInfo.CurPage;
}
if ( docpostype_DrawingObjects === this.CurPos.Type )
else if (docpostype_DrawingObjects === this.CurPos.Type)
{
var ParaDrawing = this.DrawingObjects.getMajorParaDrawing();
if ( null != ParaDrawing )
if (null != ParaDrawing)
this.CurPage = ParaDrawing.PageNum;
}
else
{
var Pos = ( true === this.Selection.Use && selectionflag_Numbering !== this.Selection.Flag ? this.Selection.EndPos : this.CurPos.ContentPos );
if ( Pos >= 0 && ( null === this.FullRecalc.Id || this.FullRecalc.StartIndex > Pos ) )
if (Pos >= 0 && ( null === this.FullRecalc.Id || this.FullRecalc.StartIndex > Pos ))
{
this.CurPage = this.Content[Pos].Get_CurrentPage_Absolute();
}
......
......@@ -3913,7 +3913,7 @@ CDocumentContent.prototype =
{
if ( true === AddToSelect )
{
this.Selection_SetEnd( X, Y, true );
this.Selection_SetEnd(X, Y, this.CurPage + this.StartPage, true);
}
else
{
......
......@@ -735,10 +735,10 @@ CHeaderFooter.prototype =
return bRetValue;
},
Cursor_MoveAt : function( X, Y, PageIndex, AddToSelect, bRemoveOldSelection )
Cursor_MoveAt : function(X, Y, PageIndex, AddToSelect, bRemoveOldSelection)
{
this.Set_Page( PageIndex );
return this.Content.Cursor_MoveAt( X, Y, AddToSelect, bRemoveOldSelection );
this.Set_Page(PageIndex);
return this.Content.Cursor_MoveAt(X, Y, AddToSelect, bRemoveOldSelection, PageIndex);
},
Cursor_MoveToCell : function(bNext)
......
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