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

Исправлен баг с Undo после добавления автофигуры (баг 20497).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50397 954022d7-b5bf-4e40-9824-e11837661b57
parent 89fa0a98
......@@ -9952,6 +9952,17 @@ CDocument.prototype =
DocState.CurComment = this.Comments.Get_CurrentId();
var State = null;
if ( true === editor.isStartAddShape && docpostype_DrawingObjects === this.CurPos.Type )
{
DocState.CurPos.Type = docpostype_Content;
DocState.Selection.Start = false;
DocState.Selection.Use = false;
this.Content[DocState.CurPos.ContentPos].Selection_Remove();
State = this.Content[this.CurPos.ContentPos].Get_SelectionState();
}
else
{
// Работаем с колонтитулом
if ( docpostype_HdrFtr === this.CurPos.Type )
State = this.HdrFtr.Get_SelectionState();
......@@ -9989,6 +10000,7 @@ CDocument.prototype =
else
State = this.Content[this.CurPos.ContentPos].Get_SelectionState();
}
}
State.push( DocState );
......
......@@ -7235,6 +7235,18 @@ CDocumentContent.prototype =
DocState.CurPage = this.CurPage;
var State = null;
if ( true === editor.isStartAddShape && docpostype_DrawingObjects === this.CurPos.Type )
{
DocState.CurPos.Type = docpostype_Content;
DocState.Selection.Start = false;
DocState.Selection.Use = false;
this.Content[DocState.CurPos.ContentPos].Selection_Remove();
State = this.Content[this.CurPos.ContentPos].Get_SelectionState();
}
else
{
// Работаем с колонтитулом
if ( docpostype_DrawingObjects === this.CurPos.Type )
State = this.LogicDocument.DrawingObjects.getSelectionState();
......@@ -7270,6 +7282,7 @@ CDocumentContent.prototype =
else
State = this.Content[this.CurPos.ContentPos].Get_SelectionState();
}
}
State.push( DocState );
return State;
......
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