longparas: drop STRING_MAXLEN limit in TextDoc

Change-Id: Iabe74f423c2d65bad637e56e5ab44dd808d41df1
This commit is contained in:
Caolán McNamara
2014-01-12 20:28:31 +00:00
parent 2a44ab09d7
commit 3e749d7867

View File

@@ -459,15 +459,8 @@ void TextDoc::DestroyTextNodes()
OUString TextDoc::GetText( const sal_Unicode* pSep ) const
{
sal_uLong nLen = GetTextLen( pSep );
sal_uLong nNodes = maTextNodes.Count();
if ( nLen > STRING_MAXLEN )
{
OSL_FAIL( "Text zu gross fuer String" );
return OUString();
}
OUString aASCIIText;
sal_uLong nLastNode = nNodes-1;
for ( sal_uLong nNode = 0; nNode < nNodes; nNode++ )