From 8cd05e9cf1152b21528c6f1a5bda3d949dc49791 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 10 Apr 2012 18:30:07 +0200 Subject: resolved fdo#48501 enable line size >64k in SvStream::Read*Line() CSV and other text formats may come with line sizes >64k that so far were truncated due to limitations in ByteString/UniString/String, even if one line consists of several fields that each are <64k. Introduced additional SvStream methods that read into rtl::OString and rtl::OUString and let SvStream::ReadUniOrByteStringLine() fill solely an rtl::OUString. Made Calc CSV import use those. --- sc/source/ui/dbgui/asciiopt.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sc/source/ui/dbgui/asciiopt.cxx') diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index 60e0db4c185a..0b6ce50e4527 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -81,7 +81,7 @@ ScAsciiOptions::ScAsciiOptions(const ScAsciiOptions& rOpt) : { if (nInfoCount) { - pColStart = new xub_StrLen[nInfoCount]; + pColStart = new sal_Int32[nInfoCount]; pColFormat = new sal_uInt8[nInfoCount]; for (sal_uInt16 i=0; i( rDataVec.size() ); if( nInfoCount ) { - pColStart = new xub_StrLen[ nInfoCount ]; + pColStart = new sal_Int32[ nInfoCount ]; pColFormat = new sal_uInt8[ nInfoCount ]; for( sal_uInt16 nIx = 0; nIx < nInfoCount; ++nIx ) { @@ -276,11 +276,11 @@ void ScAsciiOptions::ReadFromString( const String& rString ) nInfoCount = nSub / 2; if (nInfoCount) { - pColStart = new xub_StrLen[nInfoCount]; + pColStart = new sal_Int32[nInfoCount]; pColFormat = new sal_uInt8[nInfoCount]; for (sal_uInt16 nInfo=0; nInfo