diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-08-26 09:40:45 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-08-26 09:41:26 -0400 |
commit | bbe49667aa6dff069ba7836766fce2e85c03aace (patch) | |
tree | b93cad08057c32ae9e19f78701c40eb0a2d91283 /sc/source | |
parent | e06014e0db64ec36ec41dee542d2453c945fddd3 (diff) |
We don't need this branching here anymore.
Change-Id: I5253e919b85d66fb826eb76a8369f928611644ed
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/excdoc.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx index 490d7d4377a6..5cb48d277b04 100644 --- a/sc/source/filter/excel/excdoc.cxx +++ b/sc/source/filter/excel/excdoc.cxx @@ -244,19 +244,16 @@ void ExcTable::FillAsHeaderBinary( ExcBoundsheetList& rBoundsheetList ) } // document protection options - if( GetOutput() == EXC_OUTPUT_BINARY ) - { - lcl_AddWorkbookProtection( aRecList, *this ); - - if( GetBiff() == EXC_BIFF8 ) - { - Add( new XclExpProt4Rev ); - Add( new XclExpProt4RevPass ); - } + lcl_AddWorkbookProtection( aRecList, *this ); - lcl_AddBookviews( aRecList, *this ); + if( GetBiff() == EXC_BIFF8 ) + { + Add( new XclExpProt4Rev ); + Add( new XclExpProt4RevPass ); } + lcl_AddBookviews( aRecList, *this ); + Add( new XclExpXmlStartSingleElementRecord( XML_workbookPr ) ); if ( GetBiff() == EXC_BIFF8 && GetOutput() != EXC_OUTPUT_BINARY ) { |