[DE] Fix paragraph indents (#293)
This commit is contained in:
parent
92c19e0a8e
commit
3b43b1d543
|
@ -1414,14 +1414,14 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
|
||||||
if (this._changedProps.get_Ind()===null || this._changedProps.get_Ind()===undefined)
|
if (this._changedProps.get_Ind()===null || this._changedProps.get_Ind()===undefined)
|
||||||
this._changedProps.put_Ind(new Asc.asc_CParagraphInd());
|
this._changedProps.put_Ind(new Asc.asc_CParagraphInd());
|
||||||
var value = Common.Utils.Metric.fnRecalcToMM(field.getNumberValue());
|
var value = Common.Utils.Metric.fnRecalcToMM(field.getNumberValue());
|
||||||
if (this.CurSpecial === c_paragraphSpecial.HANGING) {
|
if (this.CurSpecial === c_paragraphSpecial.NONE_SPECIAL && value > 0 ) {
|
||||||
value = -value;
|
|
||||||
} else if (this.CurSpecial === c_paragraphSpecial.NONE_SPECIAL && value > 0 ) {
|
|
||||||
this.CurSpecial = c_paragraphSpecial.FIRST_LINE;
|
this.CurSpecial = c_paragraphSpecial.FIRST_LINE;
|
||||||
this.cmbSpecial.setValue(c_paragraphSpecial.FIRST_LINE);
|
this.cmbSpecial.setValue(c_paragraphSpecial.FIRST_LINE);
|
||||||
} else if (value === 0) {
|
} else if (value === 0) {
|
||||||
this.CurSpecial = c_paragraphSpecial.NONE_SPECIAL;
|
this.CurSpecial = c_paragraphSpecial.NONE_SPECIAL;
|
||||||
this.cmbSpecial.setValue(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);
|
this._changedProps.get_Ind().put_FirstLine(value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue