Commit e873e0d9 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг со вставкой нумерации параграфа (баг 27023). Исправлен баг с...

Исправлен баг со вставкой нумерации параграфа (баг 27023). Исправлен баг с поиском ближайшего контента в формулах.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58928 954022d7-b5bf-4e40-9824-e11837661b57
parent 322bbd0c
......@@ -1728,6 +1728,9 @@ CAbstractNum.prototype =
_isEqualLvlText: function(LvlTextOld, LvlTextNew)
{
if (LvlTextOld.length !== LvlTextNew.length)
return false;
for(var LvlText = 0; LvlText < LvlTextOld.length; LvlText++)
{
if(LvlTextOld[LvlText].Type != LvlTextNew[LvlText].Type || LvlTextOld[LvlText].Value != LvlTextNew[LvlText].Value)
......
......@@ -775,9 +775,9 @@ CMathBase.prototype.Get_ParaContentPosByXY = function(SearchPos, Depth, _CurLine
}
else
{
var dCurDiffX = Math.min(Math.abs(X - oBounds.X), Math.abs(X - oBounds.X - oBounds.W));
var dCurDiffY = Math.min(Math.abs(Y - oBounds.Y), Math.abs(Y - oBounds.Y - oBounds.H));
var dCurDiff = Math.min(dCurDiffX, dCurDiffY);
var dCurDiffX = X - (oBounds.X + oBounds.W / 2);
var dCurDiffY = Y - (oBounds.Y + oBounds.H / 2);
var dCurDiff = dCurDiffX * dCurDiffX + dCurDiffY * dCurDiffY;
if (null === dDiff || dDiff > dCurDiff)
{
......
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