Commit 45a259d8 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 27992 - Не устанавливается курсор в ячейку таблицы при вставке

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61184 954022d7-b5bf-4e40-9824-e11837661b57
parent abc36654
...@@ -988,13 +988,15 @@ CPresentation.prototype = ...@@ -988,13 +988,15 @@ CPresentation.prototype =
var graphic_frame = this.Create_TableGraphicFrame(Cols, Rows, this.Slides[this.CurPage], this.DefaultTableStyleId); var graphic_frame = this.Create_TableGraphicFrame(Cols, Rows, this.Slides[this.CurPage], this.DefaultTableStyleId);
if(this.Document_Is_SelectionLocked(changestype_AddShape, graphic_frame) === false) if(this.Document_Is_SelectionLocked(changestype_AddShape, graphic_frame) === false)
{ {
this.Slides[this.CurPage].graphicObjects.resetSelection(); //this.Slides[this.CurPage].graphicObjects.resetSelection();
this.Slides[this.CurPage].graphicObjects.selectObject(graphic_frame, 0); //this.Slides[this.CurPage].graphicObjects.selectObject(graphic_frame, 0);
this.Check_GraphicFrameRowHeight(graphic_frame); this.Check_GraphicFrameRowHeight(graphic_frame);
this.Slides[this.CurPage].addToSpTreeToPos(this.Slides[this.CurPage].cSld.spTree.length, graphic_frame); this.Slides[this.CurPage].addToSpTreeToPos(this.Slides[this.CurPage].cSld.spTree.length, graphic_frame);
graphic_frame.Set_CurrentElement();
graphic_frame.graphicObject.Cursor_MoveToStartPos();
this.Recalculate(); this.Recalculate();
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
this.Document_UpdateSelectionState();
} }
else else
{ {
......
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