--- sw/source/ui/docvw/edtwin.cxx.bakj 2005-08-10 09:35:53.000000000 +0530 +++ sw/source/ui/docvw/edtwin.cxx 2005-08-11 11:05:38.000000000 +0530 @@ -5209,7 +5209,13 @@ if( rS.Len() > rWord.Len() ) { String* pNew = new String( rS ); - if( !aArr.Insert( pNew ) ) + ByteString bStr(::rtl::OUStringToOString (rWord, RTL_TEXTENCODING_UTF8)); + if (bStr.IsLowerAscii()) + pNew->ToLowerAscii(); + else if (bStr.IsUpperAscii()) + pNew->ToUpperAscii(); + + if( !aArr.Insert(pNew ) ) delete pNew; } ++nStt;