Commit 0b147537 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 27381 - [Docx] Неправильный уровень автофигур при открытии документов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59551 954022d7-b5bf-4e40-9824-e11837661b57
parent 4dafa1f4
......@@ -2608,13 +2608,19 @@ CGraphicObjects.prototype =
function ComparisonByZIndexSimpleParent(obj1, obj2)
{
if(obj1.parent && obj2.parent)
return obj1.parent.RelativeHeight - obj2.parent.RelativeHeight;
return ComparisonByZIndexSimple(obj1.parent, obj2.parent);
return 0;
}
function ComparisonByZIndexSimple(obj1, obj2)
{
return obj1.RelativeHeight - obj2.RelativeHeight;
if(isRealNumber(obj1.RelativeHeight) && isRealNumber(obj2.RelativeHeight))
return obj1.RelativeHeight - obj2.RelativeHeight;
if(!isRealNumber(obj1.RelativeHeight) && isRealNumber(obj2.RelativeHeight))
return -1;
if(isRealNumber(obj1.RelativeHeight) && !isRealNumber(obj2.RelativeHeight))
return 1;
return 0;
}
......
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