Commit 75b27485 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Сделано, чтобы имя несуществующего шрифта сохранялось в документ (баг 29028).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64734 954022d7-b5bf-4e40-9824-e11837661b57
parent 78323f95
......@@ -1856,7 +1856,7 @@ asc_docs_api.prototype.put_TextPrFontName = function(name)
History.Create_NewPoint(historydescription_Presentation_ParagraphAdd);
this.WordControl.m_oLogicDocument.Paragraph_Add(new ParaTextPr({
FontFamily: {
Name: fontinfo.Name,
Name: name,
Index: -1
}
}));
......
......@@ -2974,7 +2974,7 @@ asc_docs_api.prototype.put_TextPrFontName = function(name)
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content) )
{
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(historydescription_Document_SetTextFontName);
this.WordControl.m_oLogicDocument.Paragraph_Add( new ParaTextPr( { FontFamily : { Name : fontinfo.Name , Index : -1 } } ) );
this.WordControl.m_oLogicDocument.Paragraph_Add( new ParaTextPr( { FontFamily : { Name : name , Index : -1 } } ) );
}
}
};
......
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