diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-07-17 22:56:27 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:53 +0200 |
commit | cca32681386d1282754fbaca7a19ec14c3ad2264 (patch) | |
tree | 6aea87bcf4a198067c99a269d7b08aed534c8dfa /sfx2/source/doc | |
parent | db0cc8453ca795d3657e365bb0817708e3f00f38 (diff) |
Properties dialog
Only call CMIS update properties when
it is a CMIS document.
Change-Id: Ibccd2effcf7e839f71523233fd3e69b5d464a310
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index b89343ec7440..52ed2e4566bd 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -520,7 +520,8 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) pDocInfoItem->UpdateDocumentInfo(getDocProperties()); uno::Sequence< document::CmisProperty > aNewCmisProperties = pDocInfoItem->GetCmisPropertiesSeq( ); - xCmisDoc->updateCmisProperties( aNewCmisProperties ); + if ( aNewCmisProperties.getLength( ) > 0 ) + xCmisDoc->updateCmisProperties( aNewCmisProperties ); SetUseUserData( ((const SfxDocumentInfoItem *)pDocInfoItem)->IsUseUserData() ); // add data from dialog for possible recording purpose rReq.AppendItem( SfxDocumentInfoItem( GetTitle(), |