[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/source
Markus Mohrhard
markus.mohrhard at collabora.co.uk
Fri Feb 14 11:17:33 CET 2014
sc/source/filter/qpro/qpro.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 83284801a475a0ec1b98f02ee8ec46b259f35cb8
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date: Thu Feb 13 23:11:11 2014 +0100
fix QPro import filter, related #i41688#
We desperately need a test document for this format.
Change-Id: Ifd8e35bb3330c2b9d2443a3a0f18209001a4bdff
Reviewed-on: https://gerrit.libreoffice.org/8037
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index 77dc5dca..fc651eb 100644
--- a/sc/source/filter/qpro/qpro.cxx
+++ b/sc/source/filter/qpro/qpro.cxx
@@ -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;
}
More information about the Libreoffice-commits
mailing list