fix QPro import filter, related #i41688#

We desperately need a test document for this format.

Change-Id: Ifd8e35bb3330c2b9d2443a3a0f18209001a4bdff
This commit is contained in:
Markus Mohrhard
2014-02-13 23:11:11 +01:00
committed by Markus Mohrhard
parent a0e3e985cd
commit f759239d7d

View File

@@ -226,7 +226,7 @@ void ScQProReader::readString( OUString &rString, sal_uInt16 nLength )
sal_Char* pText = new sal_Char[ nLength + 1 ];
mpStream->Read( pText, nLength );
pText[ nLength ] = 0;
rString = OUString( pText, nLength, mpStream->GetStreamCharSet() );
rString = OUString( pText, std::strlen(pText), mpStream->GetStreamCharSet() );
delete [] pText;
}