[Libreoffice-commits] core.git: sc/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Thu Oct 20 10:21:57 UTC 2016


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

New commits:
commit 168463ed0537a5a9737aa5226657af1e263d0036
Author: Jochen Nitschke <j.nitschke+logerrit at 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.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at 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 );
             }
         }


More information about the Libreoffice-commits mailing list