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

isPointInDrawingObjects2 - не определяем попадание в текст.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60804 954022d7-b5bf-4e40-9824-e11837661b57
parent c2fb6014
......@@ -2241,7 +2241,7 @@ CGraphicObjects.prototype =
this.zIndexManager.addItem(null, paraDrawing);
},
isPointInDrawingObjects: function(x, y, pageIndex, bSelected)
isPointInDrawingObjects: function(x, y, pageIndex, bSelected, bNoText)
{
var ret;
this.handleEventMode = HANDLE_EVENT_MODE_CURSOR;
......@@ -2249,6 +2249,13 @@ CGraphicObjects.prototype =
this.handleEventMode = HANDLE_EVENT_MODE_HANDLE;
if(isRealObject(ret))
{
if(bNoText === true)
{
if(ret.cursorType === "text")
{
return -1;
}
}
var object = g_oTableId.Get_ById(ret.objectId);
if(isRealObject(object) && (!(bSelected === true) || bSelected && object.selected) )
{
......@@ -2274,7 +2281,7 @@ CGraphicObjects.prototype =
isPointInDrawingObjects2: function(x, y, pageIndex, bSelected)
{
return this.isPointInDrawingObjects(x, y, pageIndex, bSelected) > -1;
return this.isPointInDrawingObjects(x, y, pageIndex, bSelected, true) > -1;
},
......
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