summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2013-04-25 11:47:56 +0530
committerMuthu Subramanian <sumuthu@suse.com>2013-04-25 11:54:14 +0530
commit06b918053fb9cf455cf431ca001a63030092d018 (patch)
tree053ab31d3b66149eab08d08771c82ad420ae8611 /sfx2
parent427d20e72e914082af5cddc9527fb3df0dd270a2 (diff)
Broken security/password when saving to older odf (sx?) formats.
nDefVersion is the default doc version, whereas, we need to check the current document version in question. While this changes just one of the places - a review is probably required for other places as well, where nDefVersion is used.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objstor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index a6fef7693f60..b92a10a048df 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -383,7 +383,7 @@ void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xSto
aEncryptionAlgs[1].Value <<= xml::crypto::CipherID::BLOWFISH_CFB_8;
aEncryptionAlgs[2].Value <<= xml::crypto::DigestID::SHA1_1K;
- if ( nDefVersion >= SvtSaveOptions::ODFVER_012 )
+ if ( nVersion >= SOFFICE_FILEFORMAT_8 )
{
try
{