Commit d1caa2d6 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add default fields for print

parent e3a7cce9
......@@ -1711,10 +1711,10 @@
var pageLeftField, pageRightField, pageTopField, pageBottomField;
if (pageMargins instanceof asc_CPageMargins) {
pageLeftField = pageMargins.asc_getLeft();
pageRightField = pageMargins.asc_getRight();
pageTopField = pageMargins.asc_getTop();
pageBottomField = pageMargins.asc_getBottom();
pageLeftField = Math.max(pageMargins.asc_getLeft(), c_oAscPrintDefaultSettings.MinPageLeftField);
pageRightField = Math.max(pageMargins.asc_getRight(), c_oAscPrintDefaultSettings.MinPageRightField);
pageTopField = Math.max(pageMargins.asc_getTop(), c_oAscPrintDefaultSettings.MinPageTopField);
pageBottomField = Math.max(pageMargins.asc_getBottom(), c_oAscPrintDefaultSettings.MinPageBottomField);
}
if (null == pageGridLines) {
......
......@@ -794,6 +794,11 @@
PageTopField : 19.1,
PageBottomField : 19.1,
MinPageLeftField : 0.17,
MinPageRightField : 0.17,
MinPageTopField : 0.17,
MinPageBottomField : 0.17,
PageGridLines : 0,
PageHeadings : 0
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment