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

Bug 28605 - По двойному тапу изображения перепрыгивает из фигуры в параграф

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61436 954022d7-b5bf-4e40-9824-e11837661b57
parent e8669f7b
......@@ -1632,12 +1632,30 @@ CGraphicObjects.prototype =
this.handleEventMode = HANDLE_EVENT_MODE_CURSOR;
var cursor_type = this.nullState.onMouseDown(global_mouseEvent, x, y, pageIndex);
this.handleEventMode = HANDLE_EVENT_MODE_HANDLE;
if(cursor_type && cursor_type.cursorType === "text")
var object;
if(cursor_type )
{
var object = g_oTableId.Get_ById(cursor_type.objectId);
if(object && object.getNearestPos)
object = g_oTableId.Get_ById(cursor_type.objectId);
if(object)
{
return object.getNearestPos(x, y, pageIndex);
if(cursor_type.cursorType === "text")
{
if(object.getNearestPos)
{
return object.getNearestPos(x, y, pageIndex);
}
}
else
{
if(object.getObjectType() === historyitem_type_ImageShape && object.parent)
{
var oShape = object.parent.isShapeChild(true);
if(oShape)
{
return oShape.getNearestPos(x, y, pageIndex);
}
}
}
}
}
return null;
......
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