diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 3840c907c..adc795ea5 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -3464,7 +3464,7 @@ define([ handler: function(dlg, result) { if (result == 'ok') { props = dlg.getSettings(); - me.api.asc_changePrintTitles(props); + me.api.asc_changePrintTitles(props.width, props.height, me.api.asc_getActiveWorksheetIndex()); Common.NotificationCenter.trigger('edit:complete', me.toolbar); } } diff --git a/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js b/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js index a38da1735..db0b714bd 100644 --- a/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js +++ b/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js @@ -222,10 +222,7 @@ define([ }, getSettings: function() { - var props = new Asc.asc_CPageOptions(); - props.asc_setPrintTitlesWidth(this.txtRangeTop.getValue()); - props.asc_setPrintTitlesHeight(this.txtRangeLeft.getValue()); - return props; + return {width: this.txtRangeTop.getValue(), height: this.txtRangeLeft.getValue()}; }, onPresetSelect: function(type, menu, item) {