From 3857760d3bfba3b59a275da32936919e3ee535cc Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 1 Jul 2008 12:07:39 +0000 Subject: INTEGRATION: CWS xmlfilter05 (1.30.34); FILE MERGED 2008/05/19 12:06:22 hbrinkm 1.30.34.4: RESYNC: (1.31-1.32); FILE MERGED 2008/05/02 11:55:31 hbrinkm 1.30.34.3: RESYNC: (1.30-1.31); FILE MERGED 2008/05/01 17:58:18 mav 1.30.34.2: #i88923# fix the check 2008/05/01 17:52:28 mav 1.30.34.1: #i88923# fix the typo --- package/source/xstor/xstorage.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'package/source/xstor') diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 95c5c87621a7..7857fa9439f6 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xstorage.cxx,v $ - * $Revision: 1.32 $ + * $Revision: 1.33 $ * * This file is part of OpenOffice.org. * @@ -4648,9 +4648,10 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OStorage::getRelati for ( sal_Int32 nInd2 = 0; nInd2 < aSeq[nInd1].getLength(); nInd2++ ) if ( aSeq[nInd1][nInd2].First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Type" ) ) ) { - if ( aSeq[nInd1][nInd2].Second.equals( sType ) ) + // the type is usually an URL, so the check should be case insensitive + if ( aSeq[nInd1][nInd2].Second.equalsIgnoreAsciiCase( sType ) ) { - aResult.realloc( nEntriesNum ); + aResult.realloc( ++nEntriesNum ); aResult[nEntriesNum-1] = aSeq[nInd1]; } break; -- cgit