diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-04 12:47:16 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-04 13:50:06 +0100 |
commit | 46f74ab5f97415b8777b1043bbd7bf9839163075 (patch) | |
tree | a0d53e8bb5d3886ffbe05e1123c00ecf2cd7b193 /m4 | |
parent | d9835c81b1f929e524d4c92628811faa25bfc181 (diff) |
sfx2: fix locking after signing OOXML documents
File -> digital signatures looks like a way to view and modify digital
signatures, internally it's a sign action, that at the end may not modify
signatures after all. For this to work, SfxObjectShell::ImplSign() calls
GetMedium()->CloseAndRelease() to release the document's lock file, invokes the
signing dialog, then DoSaveCompleted() creates the lockfile again.
When signing OOXML documents, the lock file is not re-created, as
DoSaveCompleted() only creates the lockfile in case
IsPackageStorageFormat_Impl() (== own format) is true. Fix this by adding a
mode that creates the lock file, even in case of a foreign format.
With this, closing the digital signatures dialog for OOXML documents no longer
results in a confusing "Document in Use" dialog after closing the signatures
dialog.
Change-Id: Ie9e56b88768825e61765669b27a89082cdc1981f
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions