summaryrefslogtreecommitdiff
path: root/oox/source/helper
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-06-11 11:29:21 +0100
committerNoel Power <noel.power@suse.com>2013-06-11 14:10:01 +0100
commita8bb1fd10a39c692dd475e2e89dd2c6902c091d8 (patch)
tree8c71b32ef557f0d8f72dfe46b81dc2635ae41db2 /oox/source/helper
parent866845356629dd51660b73330bb9c8a2696147dd (diff)
honour mbAutoClose in BinaryXOutputStream
presumably this mbAutoClose usages got clobbered mistakenly in some merging operation Change-Id: I7116827269cdbb555753f6678528c83ab804de46
Diffstat (limited to 'oox/source/helper')
-rw-r--r--oox/source/helper/binaryoutputstream.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/helper/binaryoutputstream.cxx b/oox/source/helper/binaryoutputstream.cxx
index 23f89aeaa299..790c250126da 100644
--- a/oox/source/helper/binaryoutputstream.cxx
+++ b/oox/source/helper/binaryoutputstream.cxx
@@ -60,7 +60,8 @@ void BinaryXOutputStream::close()
if( mxOutStrm.is() ) try
{
mxOutStrm->flush();
- mxOutStrm->closeOutput();
+ if ( mbAutoClose )
+ mxOutStrm->closeOutput();
}
catch( Exception& )
{