summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index f7a619b6f3be..4e054f673ca0 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -5181,8 +5181,10 @@ sal_Int32 PDFWriterImpl::emitOutputIntent()
bool written = writeBuffer( aBuffer.data(), static_cast<sal_Int32>(aBuffer.size()) );
disableStreamEncryption();
endCompression();
+
sal_uInt64 nEndStreamPos = 0;
- m_aFile.getPos(nEndStreamPos);
+ if (m_aFile.getPos(nEndStreamPos) != osl::File::E_None)
+ return 0;
if( !written )
return 0;