Commit b2611336 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправила баг : при открытии документа с дефолтовым стилем дя формул (т.е....

Поправила баг : при открытии документа с дефолтовым стилем дя формул (т.е. italic) при смене текстовых настроек на Bold, неправильно менялись текстовых настройки вместо bold-italic применялся только один bold

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58562 954022d7-b5bf-4e40-9824-e11837661b57
parent ddda7a77
...@@ -5067,17 +5067,17 @@ ParaRun.prototype.Apply_Pr = function(TextPr) ...@@ -5067,17 +5067,17 @@ ParaRun.prototype.Apply_Pr = function(TextPr)
{ {
if(TextPr.Bold == true) if(TextPr.Bold == true)
{ {
if(this.MathPrp.sty == STY_ITALIC) if(this.MathPrp.sty == STY_ITALIC || this.MathPrp.sty == undefined)
this.Math_Apply_Style(STY_BI); this.Math_Apply_Style(STY_BI);
else if(this.MathPrp.sty == STY_PLAIN || this.MathPrp.sty == undefined) else if(this.MathPrp.sty == STY_PLAIN)
this.Math_Apply_Style(STY_BOLD); this.Math_Apply_Style(STY_BOLD);
} }
else if(TextPr.Bold == false || TextPr.Bold == null) else if(TextPr.Bold == false || TextPr.Bold == null)
{ {
if(this.MathPrp.sty == STY_BI) if(this.MathPrp.sty == STY_BI || this.MathPrp.sty == undefined)
this.Math_Apply_Style(STY_ITALIC); this.Math_Apply_Style(STY_ITALIC);
else if(this.MathPrp.sty == STY_BOLD || this.MathPrp.sty == undefined) else if(this.MathPrp.sty == STY_BOLD)
this.Math_Apply_Style(STY_PLAIN); this.Math_Apply_Style(STY_PLAIN);
} }
} }
......
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