Kaydet (Commit) aad8d0b8 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

120529: abort print controller job, if no pages will be printed

üst 1a169fa0
...@@ -656,7 +656,13 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl:: ...@@ -656,7 +656,13 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
{ {
mbJobActive = sal_True; mbJobActive = sal_True;
i_pController->createProgressDialog(); i_pController->createProgressDialog();
int nPages = i_pController->getFilteredPageCount(); const int nPages = i_pController->getFilteredPageCount();
// abort job, if no pages will be printed.
if ( nPages == 0 )
{
i_pController->abortJob();
bAborted = true;
}
for( int nOuterIteration = 0; nOuterIteration < nOuterRepeatCount && ! bAborted; nOuterIteration++ ) for( int nOuterIteration = 0; nOuterIteration < nOuterRepeatCount && ! bAborted; nOuterIteration++ )
{ {
for( int nPage = 0; nPage < nPages && ! bAborted; nPage++ ) for( int nPage = 0; nPage < nPages && ! bAborted; nPage++ )
......
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