Commit 0c67ff51 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с генерацией стилей в интерфейсе (баг 28976).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64733 954022d7-b5bf-4e40-9824-e11837661b57
parent f74964dd
......@@ -6503,11 +6503,12 @@ CStylesPainter.prototype =
graphics.init(ctx, _canvas.width, _canvas.height, _canvas.width * g_dKoef_pix_to_mm / 2, _canvas.height * g_dKoef_pix_to_mm / 2);
graphics.m_oFontManager = g_fontManager;
var DocumentStyles = _api.WordControl.m_oLogicDocument.Get_Styles();
this.defaultStyles = [];
for (var i in styles)
{
var style = styles[i];
if(true == style.qFormat)
if(true == style.qFormat && null === DocumentStyles.Get_StyleIdByName(style.Name, false))
{
this.drawStyle(graphics, style, cur_index);
this.defaultStyles[cur_index] = new CStyleImage(style.Name, cur_index, c_oAscStyleImage.Default, style.uiPriority);
......
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