summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-11-02 11:26:27 +0200
committerTor Lillqvist <tml@collabora.com>2016-11-02 11:27:23 +0200
commit1851e87627a48b826afee01f79bfb948eb5691d4 (patch)
treec18436259c9b55eefd118522a56de05556dd1da7 /sfx2
parentf013d4a1f4073cda735befd6e446bee35f3db65c (diff)
It's ODF version, not document version
Change-Id: I3e6a54dd92ebafebabf9e75b44b9f0b5f0b6aa8a
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 5a77b77e228c..fc68165ce9a5 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1384,7 +1384,7 @@ void SfxObjectShell::ImplSign( bool bScriptingContent )
ImplGetSignatureState(); // document signature
if (GetMedium() && GetMedium()->GetFilter() && GetMedium()->GetFilter()->IsOwnFormat())
ImplGetSignatureState( true ); // script signature
- bool bHasSign = ( pImpl->nScriptingSignatureState != SignatureState::NOSIGNATURES || pImpl->nDocumentSignatureState != SignatureState::NOSIGNATURES );
+oh bool bHasSign = ( pImpl->nScriptingSignatureState != SignatureState::NOSIGNATURES || pImpl->nDocumentSignatureState != SignatureState::NOSIGNATURES );
// the target ODF version on saving
@@ -1402,7 +1402,9 @@ void SfxObjectShell::ImplSign( bool bScriptingContent )
OUString aODFVersion;
try
{
- // check the version of the document
+ // check the ODF version of the document
+ // No idea what relevance this has if the document has not been loaded from ODF (or is not
+ // being saved to ODF)
uno::Reference < beans::XPropertySet > xPropSet( GetStorage(), uno::UNO_QUERY_THROW );
xPropSet->getPropertyValue("Version") >>= aODFVersion;
}