From 0abd586f1362cbd000478588bfc91552c15bbe1a Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Tue, 10 Dec 2019 13:21:55 +0300 Subject: [PATCH] [SSE] Bug 43820 --- .../main/app/view/ParagraphSettingsAdvanced.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js index ca324c36e..61c6d67f1 100644 --- a/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js @@ -210,7 +210,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ParagraphSettingsAdvanced. var properties = (this._originalProps) ? this._originalProps : new Asc.asc_CParagraphProperty(); this.Spacing = properties.asc_getSpacing(); } - this.Spacing.Before = Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()); + this.Spacing.put_Before(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); }, this)); this.spinners.push(this.numSpacingBefore); @@ -230,7 +230,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ParagraphSettingsAdvanced. var properties = (this._originalProps) ? this._originalProps : new Asc.asc_CParagraphProperty(); this.Spacing = properties.asc_getSpacing(); } - this.Spacing.After = Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()); + this.Spacing.put_After(Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); }, this)); this.spinners.push(this.numSpacingAfter); @@ -748,14 +748,14 @@ define([ 'text!spreadsheeteditor/main/app/template/ParagraphSettingsAdvanced. var properties = (this._originalProps) ? this._originalProps : new Asc.asc_CParagraphProperty(); this.Spacing = properties.asc_getSpacing(); } - this.Spacing.LineRule = record.value; + this.Spacing.put_LineRule(record.value); var selectItem = _.findWhere(this._arrLineRule, {value: record.value}), indexSelectItem = this._arrLineRule.indexOf(selectItem); if ( this.CurLineRuleIdx !== indexSelectItem ) { this.numLineHeight.setDefaultUnit(this._arrLineRule[indexSelectItem].defaultUnit); this.numLineHeight.setMinValue(this._arrLineRule[indexSelectItem].minValue); this.numLineHeight.setStep(this._arrLineRule[indexSelectItem].step); - if (this.Spacing.LineRule === c_paragraphLinerule.LINERULE_AUTO) { + if (this.Spacing.get_LineRule() === c_paragraphLinerule.LINERULE_AUTO) { this.numLineHeight.setValue(this._arrLineRule[indexSelectItem].defaultValue); } else { this.numLineHeight.setValue(Common.Utils.Metric.fnRecalcFromMM(this._arrLineRule[indexSelectItem].defaultValue)); @@ -771,7 +771,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ParagraphSettingsAdvanced. var properties = (this._originalProps) ? this._originalProps : new Asc.asc_CParagraphProperty(); this.Spacing = properties.asc_getSpacing(); } - this.Spacing.Line = (this.cmbLineRule.getValue()==c_paragraphLinerule.LINERULE_AUTO) ? field.getNumberValue() : Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()); + this.Spacing.put_Line((this.cmbLineRule.getValue()==c_paragraphLinerule.LINERULE_AUTO) ? field.getNumberValue() : Common.Utils.Metric.fnRecalcToMM(field.getNumberValue())); }, textTitle: 'Paragraph - Advanced Settings',