diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-08-16 16:41:22 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:55 +0200 |
commit | b378e754ae892a044460cfbe33ccc2e51c01f5ca (patch) | |
tree | b8070908365a5b6d278bfed1e63cedee9e89aa4a /sfx2 | |
parent | 19b76cc20cec1802c32248b3a2a4fcfcea1b58b6 (diff) |
CMIS: fix file saving issue
Change-Id: I60cccb841fea5ce493f004c73ecf50468019f860
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 329cfb8aee5c..710ea5f73a5b 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2479,7 +2479,7 @@ void SfxMedium::Init_Impl() { if ( aUrl.HasMark() ) { - pImp->m_aLogicName = aUrl.GetURLNoMark( INetURLObject::NO_DECODE ); + // keep the Mark to store the Document ID GetItemSet()->Put( SfxStringItem( SID_JUMPMARK, aUrl.GetMark() ) ); } @@ -2994,8 +2994,7 @@ const INetURLObject& SfxMedium::GetURLObject() const if (!pImp->m_pURLObj) { pImp->m_pURLObj = new INetURLObject( pImp->m_aLogicName ); - if (pImp->m_pURLObj->HasMark()) - *pImp->m_pURLObj = INetURLObject( pImp->m_aLogicName ).GetURLNoMark(); + // keep the Mark to store the Document ID } return *pImp->m_pURLObj; |