Skip to content

Commit

Permalink
Comment change.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Oct 24, 2020
1 parent df9ddcc commit c3462ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pd/nw/pdgui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1162,8 +1162,11 @@ function menu_saveas(name) {
exports.menu_saveas = menu_saveas;

function gui_canvas_print(name, initfile, initdir) {
// AG: We simply ignore initfile and initdir, as the print dialog will
// present its own file picker anyway if PDF output is chosen.
// AG: The print dialog presents its own file picker anyway if PDF
// output is chosen, and just ignores the settings for pdf_path. So
// initfile and initdir are only used here to provide a useful default
// for the header and footer information -- otherwise the print() method
// uses some random internal document URL which isn't helpful.
pdsend("pd gui-busy 1");
patchwin[name].print({ autoprint: false, headerString: initfile, footerString: path.join(initdir, initfile) });
pdsend("pd gui-busy 0");
Expand Down

0 comments on commit c3462ea

Please sign in to comment.