From 3b43b1d5430338d1a66cf1895d503398a30a025c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 13 Jan 2020 11:07:23 +0300 Subject: [PATCH] [DE] Fix paragraph indents (#293) --- .../main/app/view/ParagraphSettingsAdvanced.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js b/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js index f7eb4b34e..9469f3716 100644 --- a/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js @@ -1414,14 +1414,14 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem if (this._changedProps.get_Ind()===null || this._changedProps.get_Ind()===undefined) this._changedProps.put_Ind(new Asc.asc_CParagraphInd()); var value = Common.Utils.Metric.fnRecalcToMM(field.getNumberValue()); - if (this.CurSpecial === c_paragraphSpecial.HANGING) { - value = -value; - } else if (this.CurSpecial === c_paragraphSpecial.NONE_SPECIAL && value > 0 ) { + if (this.CurSpecial === c_paragraphSpecial.NONE_SPECIAL && value > 0 ) { this.CurSpecial = c_paragraphSpecial.FIRST_LINE; this.cmbSpecial.setValue(c_paragraphSpecial.FIRST_LINE); } else if (value === 0) { this.CurSpecial = c_paragraphSpecial.NONE_SPECIAL; this.cmbSpecial.setValue(c_paragraphSpecial.NONE_SPECIAL); + } else if (this.CurSpecial === c_paragraphSpecial.HANGING) { + value = -value; } this._changedProps.get_Ind().put_FirstLine(value); }