Kaydet (Commit) 95bee23d authored tarafından Eike Rathke's avatar Eike Rathke

Resolves: tdf#104250 import sheetProtection hash attributes

Change-Id: Ibae0934a84173b0933a03a6050abaaf3384404cb
üst 1bf8006f
......@@ -241,6 +241,12 @@ void WorksheetSettings::finalizeImport()
{
ScTableProtection aProtect;
aProtect.setProtected(true);
aProtect.setPasswordHash( maSheetProt.maAlgorithmName, maSheetProt.maHashValue,
maSheetProt.maSaltValue, maSheetProt.mnSpinCount);
// Set the simple hash after the proper hash because setting the proper
// hash resets the simple hash, yet if the simple hash is present we
// may as well use it and more important want to keep it for saving the
// document again.
if (maSheetProt.mnPasswordHash)
{
Sequence<sal_Int8> aPass(2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment