diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-08 14:41:10 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-08 14:44:27 +0200 |
commit | f1ca1384707cb6c4fa240fdc4903bfb3ceaff889 (patch) | |
tree | 5ae3d43b52c35a3129cdc70045405cae54df4fe7 /sc/inc | |
parent | 3974d6a2d96ec3facf529a4e54a2db63783961dd (diff) |
also check if a newly read password protection applies to a range
Change-Id: Ibbf4fee2b87c82cdbd565681690a231fb06da66f
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/tabprotection.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx index b057ad08fb0f..9a4fef125739 100644 --- a/sc/inc/tabprotection.hxx +++ b/sc/inc/tabprotection.hxx @@ -133,6 +133,11 @@ struct ScEnhancedProtection { return !maSecurityDescriptor.empty() || !maSecurityDescriptorXML.isEmpty(); } + + bool hasPassword() const + { + return mnPasswordVerifier != 0 || !maHashValue.isEmpty(); + } }; /** sheet protection state container |