summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-11-23 09:25:13 +0100
committerDavid Tardon <dtardon@redhat.com>2011-12-05 15:11:48 +0100
commitc11d549a89fe16db311be3a9f057da69ab6bf49b (patch)
tree8c3fc53dbe384187a23c522eb1d7b6a5584b7722 /vcl
parentadd support for printing n copies (diff)
downloadcore-c11d549a89fe16db311be3a9f057da69ab6bf49b.tar.gz
core-c11d549a89fe16db311be3a9f057da69ab6bf49b.zip
deactivate print job after error
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/print3.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index f8a2387589c7..cd1cb51c0229 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -568,6 +568,11 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
mnCurPrintPage = 0;
mbPrinting = sal_False;
mpPrinter = NULL;
+ mbJobActive = sal_False;
+
+ GDIMetaFile aDummyFile;
+ i_pController->setLastPage(sal_True);
+ i_pController->getFilteredPageFile(0, aDummyFile);
return false;
}