summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-17 22:56:27 +0200
committerCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-07-17 22:56:27 +0200
commit683701d45325f20edec58ca7f57088e956db9b20 (patch)
tree72bae2a0c986edc4bd87321a5eb4f579a6112a4c
parent03a1970086d170d0e0969c45a6cff8baabd05026 (diff)
Properties dialog
Only call CMIS update properties when it is a CMIS document. Change-Id: Ibccd2effcf7e839f71523233fd3e69b5d464a310
-rw-r--r--sfx2/source/doc/objserv.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 91a59f7197ea..8c6365285e8b 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(),