diff options
| author | Manolo Gouy <Manolo> | 2010-03-26 18:10:39 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-03-26 18:10:39 +0000 |
| commit | f766b7930d4a656d3e29e7f4300f52f3b3244d03 (patch) | |
| tree | f31675559c69f5bb2c55c9c3241c25717bd248fb /src/Fl_PS_Printer.cxx | |
| parent | 44d22726b6dac2f9e3908e9710fbc0aa533f8355 (diff) | |
PostScrit print dialog: memorize page size and orientation user's preferences
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_PS_Printer.cxx')
| -rw-r--r-- | src/Fl_PS_Printer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_PS_Printer.cxx b/src/Fl_PS_Printer.cxx index c776e70b8..eb9268e4c 100644 --- a/src/Fl_PS_Printer.cxx +++ b/src/Fl_PS_Printer.cxx @@ -392,7 +392,6 @@ static const char * prolog_3 = // prolog relevant only if lang_level >2 // end prolog - Fl_PSfile_Device::Fl_PSfile_Device(void) { close_cmd_ = 0; @@ -1257,6 +1256,7 @@ int Fl_Printer::start_job(int pages, int *firstpage, int *lastpage) { // first test version for print dialog + print_prefs = new Fl_Preferences(Fl_Preferences::USER, "fltk.org", "print_support"); if (!print_panel) make_print_panel(); print_load(); print_selection->deactivate(); @@ -1266,6 +1266,7 @@ int Fl_Printer::start_job(int pages, int *firstpage, int *lastpage) { { char tmp[10]; snprintf(tmp, sizeof(tmp), "%d", pages); print_to->value(tmp); } print_panel->show(); // this is modal while (print_panel->shown()) Fl::wait(); + delete print_prefs; if (!print_start) // user clicked cancel return 1; |
