diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-08-18 13:37:53 +0200 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2010-08-18 13:37:53 +0200 |
commit | 1e2a8e040e075d208c184743daaea79866d17e23 (patch) | |
tree | 156309e3023a790d5266da9ef3acf6c360898f05 /vcl | |
parent | pdfprint: #i94173# #i113802# send print jobs in PDF instead of PostScript (diff) | |
download | core-1e2a8e040e075d208c184743daaea79866d17e23.tar.gz core-1e2a8e040e075d208c184743daaea79866d17e23.zip |
pdfprint: #i94173# printer name
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/source/gdi/salprnpsp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/source/gdi/salprnpsp.cxx b/vcl/unx/source/gdi/salprnpsp.cxx index b9e3cec07e00..cf38769b2b99 100644 --- a/vcl/unx/source/gdi/salprnpsp.cxx +++ b/vcl/unx/source/gdi/salprnpsp.cxx @@ -1237,7 +1237,7 @@ BOOL PspSalPrinter::StartJob( const String* i_pFileName, const String& i_rJobNam std::vector< char > buffer( 0x10000, 0 ); for( int nCurJob = 0; nCurJob < nJobs; nCurJob++ ) { - FILE* fp = PrinterInfoManager::get().startSpool( i_pSetupData->maPrinterName, i_rController.isDirectPrint() ); + FILE* fp = PrinterInfoManager::get().startSpool( pPrinter->GetName(), i_rController.isDirectPrint() ); if( fp ) { sal_uInt64 nBytesRead = 0; @@ -1247,7 +1247,7 @@ BOOL PspSalPrinter::StartJob( const String* i_pFileName, const String& i_rJobNam if( nBytesRead > 0 ) fwrite( &buffer[0], 1, nBytesRead, fp ); } while( nBytesRead == buffer.size() ); - PrinterInfoManager::get().endSpool( i_pSetupData->maPrinterName, i_rJobName, fp, m_aJobData ); + PrinterInfoManager::get().endSpool( pPrinter->GetName(), i_rJobName, fp, m_aJobData ); } } osl_closeFile( pFile ); |