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.
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index a6fef76..b92a10a 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
{