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

Bug 25295 - Сбрасывается выделение с текста в заголовке диаграммы, при открытии контекстного меню

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57187 954022d7-b5bf-4e40-9824-e11837661b57
parent 3f39f64e
......@@ -1866,14 +1866,19 @@ CShape.prototype =
selectionCheck: function( X, Y, Page_Abs, NearPos)
{
if ( undefined !== NearPos )
return this.textBoxContent.Selection_Check(X, Y, Page_Abs, NearPos);
if(isRealObject(this.textBoxContent) && this.hitInTextRect(X, Y))
var content = this.getDocContent();
if(content)
{
var t_x = this.invertTransformText.TransformPointX(X, Y);
var t_y = this.invertTransformText.TransformPointY(X, Y);
return this.textBoxContent.Selection_Check(t_x, t_y, Page_Abs, NearPos);
if ( undefined !== NearPos )
return content.Selection_Check(X, Y, Page_Abs, NearPos);
if(isRealObject(content) && this.hitInTextRect(X, Y))
{
var t_x = this.invertTransformText.TransformPointX(X, Y);
var t_y = this.invertTransformText.TransformPointY(X, Y);
return content.Selection_Check(t_x, t_y, Page_Abs, NearPos);
}
}
return false;
},
......
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