summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-17 16:17:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-20 10:21:28 +0000
commit168463ed0537a5a9737aa5226657af1e263d0036 (patch)
tree14278def40eba2522c5a55d9e0dd65a4c665ac42 /sc
parent4846c0fed99c4e6759b49cf9a02270d96e7c0863 (diff)
fix fallback in ScVbaFormat::getLocked
>>= specialisation for rhs Any is good at hiding stuff: old code equals to > util::CellProtection cellProtection; > aCellProtection = mxPropertySet->getPropertyValue(sCellProt); > aCellProtection = uno::makeAny( cellProtection.IsLocked ); and would always return Any(false) Change-Id: Iccbf35f32dd92fbfcf495f11cc993109be2e5e4e Reviewed-on: https://gerrit.libreoffice.org/29972 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/vba/vbaformat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx
index a2880f9b372e..db4f2dbe1eed 100644
--- a/sc/source/ui/vba/vbaformat.cxx
+++ b/sc/source/ui/vba/vbaformat.cxx
@@ -573,7 +573,7 @@ ScVbaFormat< Ifc... >::getLocked( ) throw (script::BasicErrorException, uno::Ru
else // fallback to propertyset
{
util::CellProtection cellProtection;
- mxPropertySet->getPropertyValue(sCellProt) >>= aCellProtection;
+ mxPropertySet->getPropertyValue(sCellProt) >>= cellProtection;
aCellProtection = uno::makeAny( cellProtection.IsLocked );
}
}