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

startEditTextCurrentShape for grouped shape

parent 8c770562
......@@ -344,14 +344,15 @@ DrawingObjectsController.prototype =
//for mobile spreadsheet editor
startEditTextCurrentShape: function()
{
if(this.selectedObjects.length === 1 && this.selectedObjects[0].getObjectType() === historyitem_type_Shape)
var oSelector = this.selection.groupSelection ? this.selection.groupSelection : this;
if(oSelector.selectedObjects.length === 1 && oSelector.selectedObjects[0].getObjectType() === historyitem_type_Shape)
{
var oShape = this.selectedObjects[0];
var oContent = oShape.getDocContent();
if(oContent)
{
this.resetInternalSelection();
this.selection.textSelection = oShape;
oSelector.resetInternalSelection();
oSelector.selection.textSelection = oShape;
oContent.Cursor_MoveToEndPos(false);
this.updateSelectionState();
this.updateOverlay();
......@@ -362,8 +363,8 @@ DrawingObjectsController.prototype =
this.checkSelectedObjectsAndCallback(function(){
oShape.createTextBody();
var oContent = oShape.getDocContent();
oThis.resetInternalSelection();
oThis.selection.textSelection = oShape;
oSelector.resetInternalSelection();
oSelector.selection.textSelection = oShape;
oContent.Cursor_MoveToEndPos(false);
oThis.updateSelectionState();
}, [], false, historydescription_Spreadsheet_AddNewParagraph);
......
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