sc/source/ui/vba/vbaformat.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 168463ed0537a5a9737aa5226657af1e263d0036
Author: Jochen Nitschke <j.nitschke+loger...@ok.de>
Date:   Mon Oct 17 16:17:55 2016 +0200

    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.gran...@collabora.co.uk>
    Tested-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx
index a2880f9..db4f2db 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 );
             }
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to