diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-10-14 16:51:32 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-10-14 16:51:32 +0200 |
commit | 72d4ce6f24383176d923b8d7088e3bbe58e3c623 (patch) | |
tree | a20edb5b004ab6b84c5d84ce18577d94c05e9b9d | |
parent | CMIS file picker: it really does not like ID Mark (diff) | |
download | core-feature/cmis.tar.gz core-feature/cmis.zip |
CMIS: fixed regression for Checkin/out entries in Files menu
feature/cmis
Change-Id: I6ba77175dc650230039da60a4baee20e0801cc5e
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 5e04bb671d4c..8e0026f53375 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -953,10 +953,12 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) sal_Bool bCheckedOut = sal_False; for ( sal_Int32 i = 0; i < aCmisProperties.getLength() && !bFoundCheckedout; ++i ) { - if ( aCmisProperties[i].Name == "cmis:isVersionSeriesCheckedOut" ) + if ( aCmisProperties[i].Id == "cmis:isVersionSeriesCheckedOut" ) { bFoundCheckedout = true; - aCmisProperties[i].Value >>= bCheckedOut; + uno::Sequence< sal_Bool > aValues; + aCmisProperties[i].Value >>= aValues; + bCheckedOut = aValues.getLength() > 0 && aValues[0]; } } bShow = !bCheckedOut; @@ -984,10 +986,12 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) sal_Bool bCheckedOut = sal_False; for ( sal_Int32 i = 0; i < aCmisProperties.getLength() && !bFoundCheckedout; ++i ) { - if ( aCmisProperties[i].Name == "cmis:isVersionSeriesCheckedOut" ) + if ( aCmisProperties[i].Id == "cmis:isVersionSeriesCheckedOut" ) { bFoundCheckedout = true; - aCmisProperties[i].Value >>= bCheckedOut; + uno::Sequence< sal_Bool > aValues; + aCmisProperties[i].Value >>= aValues; + bCheckedOut = aValues.getLength() > 0 && aValues[0]; } } bShow = bCheckedOut; |