Commit 92f31486 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг с поиском позиции в автофигурах.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65457 954022d7-b5bf-4e40-9824-e11837661b57
parent 32a943c3
...@@ -468,15 +468,18 @@ CDocumentContent.prototype = ...@@ -468,15 +468,18 @@ CDocumentContent.prototype =
{ {
var Page_Rel = this.Get_Page_Relative( Page_Abs ); var Page_Rel = this.Get_Page_Relative( Page_Abs );
var bInText = (null === this.Is_InText(X, Y, Page_Rel) ? false : true); if (this.Parent && this.Parent instanceof CHeaderFooter)
var nInDrawing = this.LogicDocument.DrawingObjects.isPointInDrawingObjects( X, Y, Page_Abs, this );
if ( true != bAnchor )
{ {
// Проверяем попадание в графические объекты var bInText = (null === this.Is_InText(X, Y, Page_Rel) ? false : true);
var NearestPos = this.LogicDocument.DrawingObjects.getNearestPos( X, Y, Page_Abs, Drawing ); var nInDrawing = this.LogicDocument.DrawingObjects.isPointInDrawingObjects(X, Y, Page_Abs, this);
if ( ( nInDrawing === DRAWING_ARRAY_TYPE_BEFORE || nInDrawing === DRAWING_ARRAY_TYPE_INLINE || ( false === bInText && nInDrawing >= 0 ) ) && null != NearestPos )
return NearestPos; if (true != bAnchor)
{
// Проверяем попадание в графические объекты
var NearestPos = this.LogicDocument.DrawingObjects.getNearestPos(X, Y, Page_Abs, Drawing);
if (( nInDrawing === DRAWING_ARRAY_TYPE_BEFORE || nInDrawing === DRAWING_ARRAY_TYPE_INLINE || ( false === bInText && nInDrawing >= 0 ) ) && null != NearestPos)
return NearestPos;
}
} }
var ContentPos = this.Internal_GetContentPosByXY( X, Y, Page_Rel ); var ContentPos = this.Internal_GetContentPosByXY( X, Y, Page_Rel );
......
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