diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index ae2ddb618..a4ae6251e 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -161,12 +161,16 @@ define([ var value = props.asc_getPrintTitlesHeight(); panel.txtRangeTop.setValue((value) ? value : ''); + this._noApply = true; panel.txtRangeTop.checkValidate(); + this._noApply = false; panel.dataRangeTop = value; value = props.asc_getPrintTitlesWidth(); panel.txtRangeLeft.setValue((value) ? value : ''); + this._noApply = true; panel.txtRangeLeft.checkValidate(); + this._noApply = false; panel.dataRangeLeft = value; value = (this.api.asc_getActiveWorksheetIndex()==sheet); @@ -448,7 +452,7 @@ define([ fillComponents: function(panel, selectdata) { var me = this; panel.txtRangeTop.validation = function(value) { - me.propertyChange(panel); + !me._noApply && me.propertyChange(panel); if (_.isEmpty(value)) { return true; } @@ -458,7 +462,7 @@ define([ selectdata && panel.txtRangeTop.updateBtnHint(this.textSelectRange); panel.txtRangeLeft.validation = function(value) { - me.propertyChange(panel); + !me._noApply && me.propertyChange(panel); if (_.isEmpty(value)) { return true; }