[DE] Fix Bug 46135

This commit is contained in:
Julia Radzhabova 2020-08-24 18:31:25 +03:00
parent 9f8e1ada89
commit 6055d615b5

View file

@ -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());