[SSE] Fix printing tities

This commit is contained in:
Julia Radzhabova 2020-03-17 15:24:23 +03:00
parent 8d88fe6aca
commit 42ccd21630
2 changed files with 2 additions and 5 deletions

View file

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

View file

@ -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) {