Author: hdu
Date: Mon Jan 14 10:19:08 2013
New Revision: 1432864

URL: http://svn.apache.org/viewvc?rev=1432864&view=rev
Log:
#i121482# fix attributed text search for regular expression patterns

Modified:
    openoffice/trunk/main/i18npool/source/search/textsearch.cxx

Modified: openoffice/trunk/main/i18npool/source/search/textsearch.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/i18npool/source/search/textsearch.cxx?rev=1432864&r1=1432863&r2=1432864&view=diff
==============================================================================
--- openoffice/trunk/main/i18npool/source/search/textsearch.cxx (original)
+++ openoffice/trunk/main/i18npool/source/search/textsearch.cxx Mon Jan 14 
10:19:08 2013
@@ -759,7 +759,7 @@ SearchResult TextSearch::RESrchFrwrd( co
 
        // use the ICU RegexMatcher to find the matches
        UErrorCode nIcuErr = U_ZERO_ERROR;
-       const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), 
searchStr.getLength());
+       const IcuUniString aSearchTargetStr( (const UChar*)searchStr.getStr(), 
endPos);
        pRegexMatcher->reset( aSearchTargetStr);
        // search until there is a valid match
        for(;;)


Reply via email to