diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-16 16:43:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-16 16:44:10 +0100 |
commit | b5fa5c0324298e70fcbfbde482fea6d554fc8760 (patch) | |
tree | 4538dab72a8703c8b78c685d557628c8d822e61d /sfx2 | |
parent | 2f0f6960e7e6cd88c6a8da8d0d4b172286c5b9df (diff) |
crash on use of 'echo hello' as dde command in insert section
Change-Id: Ic46be8ac6da04663096e682d17faa214b324e8bf
(cherry picked from commit ff2dd7942e42476432c2db08da71d85be7a14075)
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index c3e25657c08e..e3d4b45d2560 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -272,7 +272,7 @@ bool LinkManager::GetDisplayNames( const SvBaseLink * pLink, if( pFile ) *pFile = sTopic; if( pLinkStr ) - *pLinkStr = sCmd.copy( nTmp ); + *pLinkStr = nTmp != -1 ? sCmd.copy(nTmp) : OUString(); bRet = true; } break; |