Commit abb49fd3 authored by SergeyLuzyanin's avatar SergeyLuzyanin

asc_setDefaultLanguage

parent 2dec9442
...@@ -821,6 +821,8 @@ if(typeof CPresentation !== "undefined") ...@@ -821,6 +821,8 @@ if(typeof CPresentation !== "undefined")
"val": this.defaultTextStyleLock.Get_Id(), "val": this.defaultTextStyleLock.Get_Id(),
"guid": this.defaultTextStyleLock.Get_Id() "guid": this.defaultTextStyleLock.Get_Id()
}; };
this.defaultTextStyleLock.Lock.Check(check_obj);
} }
var bResult = AscCommon.CollaborativeEditing.OnEnd_CheckLock(); var bResult = AscCommon.CollaborativeEditing.OnEnd_CheckLock();
......
...@@ -5429,7 +5429,7 @@ background-repeat: no-repeat;\ ...@@ -5429,7 +5429,7 @@ background-repeat: no-repeat;\
asc_docs_api.prototype.asc_setDefaultLanguage = function(Lang) asc_docs_api.prototype.asc_setDefaultLanguage = function(Lang)
{ {
if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Document_SectPr)) if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_PresDefaultLang))
{ {
History.Create_NewPoint(AscDFH.historydescription_Document_SetDefaultLanguage); History.Create_NewPoint(AscDFH.historydescription_Document_SetDefaultLanguage);
editor.WordControl.m_oLogicDocument.Set_DefaultLanguage(Lang); editor.WordControl.m_oLogicDocument.Set_DefaultLanguage(Lang);
......
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