From 3a33e84f4549a71c9002d556063ff315b4fc5287 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 16 Feb 2021 19:40:06 +0300 Subject: [PATCH] Refactoring --- apps/spreadsheeteditor/main/app/view/CellSettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/CellSettings.js b/apps/spreadsheeteditor/main/app/view/CellSettings.js index 7c12a57cc..a726df8c2 100644 --- a/apps/spreadsheeteditor/main/app/view/CellSettings.js +++ b/apps/spreadsheeteditor/main/app/view/CellSettings.js @@ -148,11 +148,11 @@ define([ }, onAngleChange: function(field, newValue, oldValue, eOpts) { - this.api && this.api.asc_setCellAngle(field.getNumberValue()); + this.api && (newValue!==oldValue) && this.api.asc_setCellAngle(field.getNumberValue()); }, onIndentChange: function(field, newValue, oldValue, eOpts) { - this.api && this.api.asc_setCellIndent(field.getNumberValue()); + this.api && (newValue!==oldValue) && this.api.asc_setCellIndent(field.getNumberValue()); }, render: function () {