Commit 2e1923e2 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

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

поправлен баг с буллетами  в презентациях. использоввана функция для сравнения ParaDrawing с одинаковыми Z-индексами.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61173 954022d7-b5bf-4e40-9824-e11837661b57
parent 41295186
......@@ -2801,7 +2801,16 @@ function ComparisonByZIndexSimpleParent(obj1, obj2)
function ComparisonByZIndexSimple(obj1, obj2)
{
if(isRealNumber(obj1.RelativeHeight) && isRealNumber(obj2.RelativeHeight))
{
if(obj1.RelativeHeight === obj2.RelativeHeight)
{
if(editor && editor.WordControl && editor.WordControl.m_oLogicDocument)
{
return editor.WordControl.m_oLogicDocument.Compare_DrawingsLogicPositions(obj2, obj1);
}
}
return obj1.RelativeHeight - obj2.RelativeHeight;
}
if(!isRealNumber(obj1.RelativeHeight) && isRealNumber(obj2.RelativeHeight))
return -1;
if(isRealNumber(obj1.RelativeHeight) && !isRealNumber(obj2.RelativeHeight))
......
......@@ -9083,7 +9083,14 @@ CParaPr.prototype =
case BULLET_TYPE_BULLET_CHAR:
{
Bullet.m_nType = numbering_presentationnumfrmt_Char;
Bullet.m_sChar = this.Bullet.bulletType.Char;
if(typeof this.Bullet.bulletType.Char === "string" && this.Bullet.bulletType.Char.length > 0)
{
Bullet.m_sChar = this.Bullet.bulletType.Char.substring(0, 1);
}
else
{
Bullet.m_sChar = "";
}
if(this.Bullet.bulletTypeface && this.Bullet.bulletTypeface.type == BULLET_TYPE_TYPEFACE_BUFONT)
{
Bullet.m_bFontTx = 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