Commit 1b2ac0a4 authored by Sergey Luzyanin's avatar Sergey Luzyanin

Is_SelectionUse

parent 4cdcd63c
...@@ -1198,11 +1198,7 @@ DrawingObjectsController.prototype = ...@@ -1198,11 +1198,7 @@ DrawingObjectsController.prototype =
Is_SelectionUse: function(){ Is_SelectionUse: function(){
var content = this.getTargetDocContent(undefined, true); return this.selectedObjects.length > 0;
if(content){
return content.Is_SelectionUse();
}
return false;
}, },
getFromTargetTextObjectContextMenuPosition: function(oTargetTextObject, pageIndex) getFromTargetTextObjectContextMenuPosition: function(oTargetTextObject, pageIndex)
......
...@@ -2035,9 +2035,18 @@ CGraphicObjects.prototype = ...@@ -2035,9 +2035,18 @@ CGraphicObjects.prototype =
} }
}, },
isSelectionUse: function() isSelectionUse: function()
{ {
return this.selectedObjects.length > 0; var content = this.getTargetDocContent();
if(content)
{
return content.Is_TextSelectionUse();
}
else
{
return this.selectedObjects.length > 0;
}
}, },
paragraphFormatPaste: function( CopyTextPr, CopyParaPr, Bool ) paragraphFormatPaste: function( CopyTextPr, CopyParaPr, Bool )
......
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