Commit 50b69c84 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 28291 - Происходит удаление символа при нажатии ctrl+x

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60623 954022d7-b5bf-4e40-9824-e11837661b57
parent 91b4fa70
......@@ -3372,7 +3372,7 @@ DrawingObjectsController.prototype =
}
},
remove: function(dir)
remove: function(dir, bOnlyText, bRemoveOnlySelection)
{
var asc = window["Asc"] ? window["Asc"] : (window["Asc"] = {});
var content = this.getTargetDocContent();
......@@ -3380,24 +3380,24 @@ DrawingObjectsController.prototype =
{
return;
}
this.checkSelectedObjectsAndCallback(this.removeCallback, [dir]);
this.checkSelectedObjectsAndCallback(this.removeCallback, [dir, bOnlyText, bRemoveOnlySelection]);
},
removeCallback: function(dir)
removeCallback: function(dir, bOnlyText, bRemoveOnlySelection)
{
var target_text_object = getTargetTextObject(this);
if(target_text_object)
{
if(target_text_object.getObjectType() === historyitem_type_GraphicFrame)
{
target_text_object.graphicObject.Remove(dir);
target_text_object.graphicObject.Remove(dir, bOnlyText, bRemoveOnlySelection);
}
else
{
var content = this.getTargetDocContent(true);
if(content)
{
content.Remove(dir, true)
content.Remove(dir, true, bRemoveOnlySelection)
}
}
}
......
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