Kaydet (Commit) 9c0788f5 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix assert on exporting fdo79938-1.ott to .doc

Change-Id: I93f331bd1c57bd016948e3ed784530724a1028b4
üst e94ad965
......@@ -2026,10 +2026,12 @@ static int lcl_CheckForm( const SwForm& rForm, sal_uInt8 nLvl, OUString& rText )
nRet = 2;
break;
case TOKEN_TEXT:
{
nRet = 3;
rText = aIt->sText.copy( 0, 5 ); // #i21237#
sal_Int32 nCount = std::min<sal_Int32>(5, aIt->sText.getLength());
rText = aIt->sText.copy(0, nCount); // #i21237#
break;
}
case TOKEN_LINK_START:
case TOKEN_LINK_END:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment