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

Исправлен баг с функциями Undo/Redo для текстовых настроек (баг 19379).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48296 954022d7-b5bf-4e40-9824-e11837661b57
parent 64a1b0c2
...@@ -887,9 +887,9 @@ ParaTextPr.prototype = ...@@ -887,9 +887,9 @@ ParaTextPr.prototype =
case historyitem_TextPr_RFonts: case historyitem_TextPr_RFonts:
{ {
if ( undefined != Data.Old ) if ( undefined != Data.Old )
this.Value = Data.Old; this.Value.RFonts = Data.Old;
else else
this.Value = new CRFonts(); this.Value.RFonts = new CRFonts();
break; break;
} }
...@@ -897,9 +897,9 @@ ParaTextPr.prototype = ...@@ -897,9 +897,9 @@ ParaTextPr.prototype =
case historyitem_TextPr_Lang: case historyitem_TextPr_Lang:
{ {
if ( undefined != Data.Old ) if ( undefined != Data.Old )
this.Value = Data.Old; this.Value.Lang = Data.Old;
else else
this.Value = new CLang(); this.Value.Lang = new CLang();
break; break;
} }
...@@ -1082,9 +1082,9 @@ ParaTextPr.prototype = ...@@ -1082,9 +1082,9 @@ ParaTextPr.prototype =
case historyitem_TextPr_RFonts: case historyitem_TextPr_RFonts:
{ {
if ( undefined != Data.New ) if ( undefined != Data.New )
this.Value = Data.New; this.Value.RFonts = Data.New;
else else
this.Value = new CRFonts(); this.Value.RFonts = new CRFonts();
break; break;
} }
...@@ -1092,9 +1092,9 @@ ParaTextPr.prototype = ...@@ -1092,9 +1092,9 @@ ParaTextPr.prototype =
case historyitem_TextPr_Lang: case historyitem_TextPr_Lang:
{ {
if ( undefined != Data.New ) if ( undefined != Data.New )
this.Value = Data.New; this.Value.Lang = Data.New;
else else
this.Value = new CLang(); this.Value.Lang = new CLang();
break; break;
} }
......
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