Commit 0aeab7f0 authored by Sergey Luzyanin's avatar Sergey Luzyanin

поправлен баг со стилями параграфа в автофигурах

parent ef24b593
...@@ -497,12 +497,14 @@ CShape.prototype.applyParentTransform = function(transform) ...@@ -497,12 +497,14 @@ CShape.prototype.applyParentTransform = function(transform)
CShape.prototype.recalculateShapeStyleForParagraph = function() CShape.prototype.recalculateShapeStyleForParagraph = function()
{ {
var styles = editor.WordControl.m_oLogicDocument.Styles; var styles = editor.WordControl.m_oLogicDocument.Styles;
this.textStyleForParagraph = {TextPr: styles.Default.TextPr.Copy(), ParaPr: styles.Default.ParaPr.Copy()};
this.textStyleForParagraph = {TextPr: g_oDocumentDefaultTextPr.Copy(), ParaPr: g_oDocumentDefaultParaPr.Copy()};
this.textStyleForParagraph.ParaPr.Merge( styles.Default.ParaPr.Copy() );
this.textStyleForParagraph.TextPr.Merge( styles.Default.TextPr.Copy() );
var DefId = styles.Default.Paragraph; var DefId = styles.Default.Paragraph;
var DefaultStyle = styles.Style[DefId]; var DefaultStyle = styles.Style[DefId];
this.textStyleForParagraph.ParaPr.Merge( g_oDocumentDefaultParaPr );
this.textStyleForParagraph.TextPr.Merge( g_oDocumentDefaultTextPr );
if(DefaultStyle) if(DefaultStyle)
{ {
this.textStyleForParagraph.ParaPr.Merge( DefaultStyle.ParaPr ); this.textStyleForParagraph.ParaPr.Merge( DefaultStyle.ParaPr );
......
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