summaryrefslogtreecommitdiff
path: root/filter/source/pdf/pdfexport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/pdf/pdfexport.cxx')
-rw-r--r--filter/source/pdf/pdfexport.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index ab746ff725e8..8ad3f7caad4f 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -895,7 +895,10 @@ sal_Bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue
}
}
- bRet = ExportSelection( *pPDFWriter, xRenderable, aSelection, aMultiSelection, aRenderOptions, nPageCount );
+ if( nPageCount > 0 )
+ bRet = ExportSelection( *pPDFWriter, xRenderable, aSelection, aMultiSelection, aRenderOptions, nPageCount );
+ else
+ bRet = FALSE;
if ( bRet && bSecondPassForImpressNotes )
{
@@ -944,14 +947,8 @@ void PDFExport::showErrors( const std::set< PDFWriter::ErrorCode >& rErrors )
{
if( ! rErrors.empty() )
{
- ByteString aResMgrName( "pdffilter" );
- ResMgr* pResMgr = ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
- if ( pResMgr )
- {
- ImplErrorDialog aDlg( rErrors, *pResMgr );
- aDlg.Execute();
- delete pResMgr;
- }
+ ImplErrorDialog aDlg( rErrors );
+ aDlg.Execute();
}
}