From 7948b273a9725c546e0dc32bece296dc872bdc04 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 12 Dec 2014 12:48:44 +0200 Subject: fix commit fix my commit aa2f02a4dc8a05f49e679a26f2beebb9d66b232 "remove operator>> and operator<< methods" I incorrectly inverted the conditional Change-Id: Iade05b88bdedb7e5b0cff25a80d3b88ff4a0235f --- oox/source/helper/binaryinputstream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox/source/helper/binaryinputstream.cxx') diff --git a/oox/source/helper/binaryinputstream.cxx b/oox/source/helper/binaryinputstream.cxx index 7597981c29ec..3c41921beb37 100644 --- a/oox/source/helper/binaryinputstream.cxx +++ b/oox/source/helper/binaryinputstream.cxx @@ -45,7 +45,7 @@ OUString BinaryInputStream::readNulUnicodeArray() for (;;) { sal_uInt16 nChar = readuInt16(); - if ( mbEof || (nChar < 0) ) break; + if ( mbEof || (nChar == 0) ) break; aBuffer.append( static_cast< sal_Unicode >( nChar ) ); } return aBuffer.makeStringAndClear(); -- cgit