Kaydet (Commit) 3bcbc800 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann Kaydeden (comit) Caolán McNamara

Resolves: #i120529# abort print controller job, if no pages will be printed

(cherry picked from commit aad8d0b8)

Change-Id: I7c341961370ce12de1aeb8f0caed18f2dc496390
üst 38de05c7
......@@ -658,7 +658,13 @@ bool Printer::StartJob( const OUString& i_rJobName, boost::shared_ptr<vcl::Print
{
mbJobActive = sal_True;
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 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