Commit 79aab551 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix bug 35166

parent ade2026b
...@@ -2733,27 +2733,36 @@ Paragraph.prototype.Remove = function(nCount, bOnlyText, bRemoveOnlySelection, b ...@@ -2733,27 +2733,36 @@ Paragraph.prototype.Remove = function(nCount, bOnlyText, bRemoveOnlySelection, b
{ {
this.Remove_PresentationNumbering(); this.Remove_PresentationNumbering();
} }
else if (align_Right === Pr.Jc) else if(this.bFromDocument)
{ {
this.Set_Align(align_Center); if (align_Right === Pr.Jc)
} {
else if (align_Center === Pr.Jc) this.Set_Align(align_Center);
{ }
this.Set_Align(align_Left); else if (align_Center === Pr.Jc)
} {
else if (Math.abs(Pr.Ind.FirstLine) > 0.001) this.Set_Align(align_Left);
{ }
if (Pr.Ind.FirstLine > 0) else if (Math.abs(Pr.Ind.FirstLine) > 0.001)
this.Set_Ind({FirstLine : 0}, false); {
else if (Pr.Ind.FirstLine > 0)
this.Set_Ind({Left : Pr.Ind.Left + Pr.Ind.FirstLine, FirstLine : 0}, false); this.Set_Ind({FirstLine : 0}, false);
else
this.Set_Ind({Left : Pr.Ind.Left + Pr.Ind.FirstLine, FirstLine : 0}, false);
}
else if (Math.abs(Pr.Ind.Left) > 0.001)
{
this.Set_Ind({Left : 0}, false);
}
else
{
Result = false;
}
} }
else if (Math.abs(Pr.Ind.Left) > 0.001) else
{ {
this.Set_Ind({Left : 0}, false); Result = false;
} }
else
Result = 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