summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/source/zippackage/ZipPackage.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 22ff31ab8cb9..f9f16fa3ba92 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackage.cxx,v $
*
- * $Revision: 1.94 $
+ * $Revision: 1.95 $
*
- * last change: $Author: kz $ $Date: 2004-10-04 21:09:39 $
+ * last change: $Author: rt $ $Date: 2004-12-07 11:00:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -181,6 +181,7 @@
#ifndef _OSL_FILE_HXX_
#include <osl/file.hxx>
#endif
+#include "com/sun/star/task/XJob.hpp" //HACK see #i38298#
#include <memory>
#include <vector>
@@ -1215,6 +1216,13 @@ void SAL_CALL ZipPackage::commitChanges( )
// then copy the contents of the tempfile to our output stream
copyInputToOutput_Impl( xContentStream, xOutputStream );
xOutputStream->flush();
+ //HACK see #i38298#:
+ uno::Reference< task::XJob > asyncOutStreamErrors(
+ xOutputStream, uno::UNO_QUERY);
+ if (asyncOutStreamErrors.is()) {
+ asyncOutStreamErrors->execute(
+ uno::Sequence< beans::NamedValue >());
+ }
}
catch( uno::Exception& )
{