From 3f16ec73e07b7c187200656cfa969d71b4bea7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 20 Oct 2013 15:51:49 +0100 Subject: [PATCH] wrong comparison regression since ed338bc212725f422f0def21aafc82f05e350646 Change-Id: Ia5dfe7a551abe244c313d3bdb2b90196fc0c6ba2 --- oox/source/ole/axcontrol.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index 43d7fc6e2a9b..a2c4190e40a8 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -2609,7 +2609,7 @@ HtmlSelectModel::importBinaryModel( BinaryInputStream& rInStrm ) displayValue = displayValue.replaceAll( """, "\"" ); displayValue = displayValue.replaceAll( "&", "&" ); listValues.push_back( displayValue ); - if( sLine.indexOf( sSelected ) != STRING_NOTFOUND ) + if( sLine.indexOf( sSelected ) != -1 ) selectedIndices.push_back( static_cast< sal_Int16 >( listValues.size() ) - 1 ); } }