Commit 66bbf6ed authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Set_CurrentElement

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56769 954022d7-b5bf-4e40-9824-e11837661b57
parent 14d017fa
...@@ -581,6 +581,7 @@ CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex) ...@@ -581,6 +581,7 @@ CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex)
{ {
var drawing_objects = editor.WordControl.m_oLogicDocument.DrawingObjects; var drawing_objects = editor.WordControl.m_oLogicDocument.DrawingObjects;
drawing_objects.resetSelection(); drawing_objects.resetSelection();
var para_drawing;
if(this.group) if(this.group)
{ {
var main_group = this.group.getMainGroup(); var main_group = this.group.getMainGroup();
...@@ -588,13 +589,15 @@ CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex) ...@@ -588,13 +589,15 @@ CShape.prototype.Set_CurrentElement = function(bUpdate, pageIndex)
main_group.selectObject(this, pageIndex); main_group.selectObject(this, pageIndex);
main_group.selection.textSelection = this; main_group.selection.textSelection = this;
drawing_objects.selection.groupSelection = main_group; drawing_objects.selection.groupSelection = main_group;
para_drawing = main_group.parent;
} }
else else
{ {
drawing_objects.selectObject(this, pageIndex); drawing_objects.selectObject(this, pageIndex);
drawing_objects.selection.textSelection = this; drawing_objects.selection.textSelection = this;
para_drawing = this.parent;
} }
var hdr_ftr = main_group.DocumentContent.Is_HdrFtr(true); var hdr_ftr = para_drawing.DocumentContent.Is_HdrFtr(true);
if(hdr_ftr) if(hdr_ftr)
{ {
hdr_ftr.Content.CurPos.Type = docpostype_DrawingObjects; hdr_ftr.Content.CurPos.Type = docpostype_DrawingObjects;
......
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