From 6055d615b5c3cdc10ec89ba0abf133085236caeb Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 24 Aug 2020 18:31:25 +0300 Subject: [PATCH] [DE] Fix Bug 46135 --- apps/documenteditor/main/app/view/WatermarkSettingsDialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js index dd3c195bc..9422d514f 100644 --- a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js +++ b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js @@ -603,8 +603,9 @@ define(['text!documenteditor/main/app/template/WatermarkSettings.template', var val = this.props.get_Type(); if (val == Asc.c_oAscWatermarkType.Image) { - val = this.cmbScale.getValue(); - val = props.put_Scale((val<0) ? val : val/100); + val = parseInt(this.cmbScale.getValue()); + isNaN(val) && (val = -1); + props.put_Scale((val<0) ? val : val/100); } else { props.put_Text(this.cmbText.getValue()); props.put_IsDiagonal(this.radioDiag.getValue());