From 3e749d7867a69ce923b1a6d30f08ec5acc0eb7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 12 Jan 2014 20:28:31 +0000 Subject: [PATCH] longparas: drop STRING_MAXLEN limit in TextDoc Change-Id: Iabe74f423c2d65bad637e56e5ab44dd808d41df1 --- vcl/source/edit/textdoc.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx index bf22b77bdc3b..afe30a87c10d 100644 --- a/vcl/source/edit/textdoc.cxx +++ b/vcl/source/edit/textdoc.cxx @@ -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++ )