tdf#133771: remove encryption data during SaveAs
commitdd4670b976b00d643f335516fe5fd0c880d58025
authorVasily Melenchuk <vasily.melenchuk@cib.de>
Sat, 17 Oct 2020 07:00:04 +0000 (17 10:00 +0300)
committerThorsten Behrens <Thorsten.Behrens@CIB.de>
Sat, 17 Oct 2020 12:28:52 +0000 (17 14:28 +0200)
tree3159983934deeb68802e0aec425e4a3c49a6048c
parent235eb9ec6065f7a0713f222dcf5d6d340b0e18e9
tdf#133771: remove encryption data during SaveAs

If document was password protected but during SaveAs it wasn't
selected to use a password we should remove EcnryptionData.

But we should not do this unconditionally: in general case we should
try to keep all encryption metadata.

Change-Id: Id91a88790deccd7377fb5d394b36395d13748c31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104454
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
sfx2/source/doc/objstor.cxx