diff options
Diffstat (limited to 'sfx2/source/appl/linkmgr2.cxx')
-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 0faf85372adc..a49d49b087c0 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -246,7 +246,7 @@ bool LinkManager::GetDisplayNames( const SvBaseLink * pLink, if( pLinkStr ) *pLinkStr = sRange; if( pFilter ) - *pFilter = sLNm.copy( nPos ); + *pFilter = nPos == -1 ? OUString() : sLNm.copy(nPos); if( pType ) { |