From a8bb1fd10a39c692dd475e2e89dd2c6902c091d8 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 11 Jun 2013 11:29:21 +0100 Subject: honour mbAutoClose in BinaryXOutputStream presumably this mbAutoClose usages got clobbered mistakenly in some merging operation Change-Id: I7116827269cdbb555753f6678528c83ab804de46 --- oox/source/helper/binaryoutputstream.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'oox/source/helper') 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& ) { -- cgit