[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Tue Jun 16 08:44:08 PDT 2015
sfx2/source/appl/linkmgr2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ff2dd7942e42476432c2db08da71d85be7a14075
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jun 16 16:43:15 2015 +0100
crash on use of 'echo hello' as dde command in insert section
Change-Id: Ic46be8ac6da04663096e682d17faa214b324e8bf
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index c77ee19..164742b 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;
More information about the Libreoffice-commits
mailing list