diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-10-14 14:07:00 +0200 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-10-14 14:07:00 +0200 |
commit | 405f7ff73987a2f03b4eb89a6c8e433085311848 (patch) | |
tree | 6584c2413348a83e32b2cf404693befedce018e0 | |
parent | a19e8e4701bb6e27d60b192d9b8f180a5ac2f05f (diff) |
vcl116: #i115053# save work in EndJob if there is no page in the job
-rw-r--r-- | vcl/unx/source/printergfx/printerjob.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/source/printergfx/printerjob.cxx b/vcl/unx/source/printergfx/printerjob.cxx index 5e18849b8dfe..1eeffb813175 100644 --- a/vcl/unx/source/printergfx/printerjob.cxx +++ b/vcl/unx/source/printergfx/printerjob.cxx @@ -495,6 +495,10 @@ PrinterJob::StartJob ( sal_Bool PrinterJob::EndJob () { + // no pages ? that really means no print job + if( maPageList.empty() ) + return sal_False; + // write document setup (done here because it // includes the accumulated fonts if( mpJobHeader ) |