Index: filter/source/pdf/pdfexport.cxx =================================================================== --- filter/source/pdf/pdfexport.cxx (revision 1486534) +++ filter/source/pdf/pdfexport.cxx (working copy) @@ -170,6 +170,14 @@ sal_Bool bRet = sal_False; try { + const sal_Int32 nTotalPageCount(aMultiSelection.GetSelectCount()); + + if(!nTotalPageCount) + { + rRenderable->render( -2, rSelection, rRenderOptions ); + return sal_False; + } + Any* pFirstPage = NULL; Any* pLastPage = NULL; Index: sw/source/ui/uno/unotxdoc.cxx =================================================================== --- sw/source/ui/uno/unotxdoc.cxx (revision 1486534) +++ sw/source/ui/uno/unotxdoc.cxx (working copy) @@ -3102,6 +3102,13 @@ if(!IsValid()) throw RuntimeException(); + if(-2 == nRenderer) + { + delete m_pRenderData; m_pRenderData = NULL; + delete m_pPrintUIOptions; m_pPrintUIOptions = NULL; + return; + } + // due to #110067# (document page count changes sometimes during // PDF export/printing) we can not check for the upper bound properly. // Thus instead of throwing the exception we silently return.