From e6288a5d889da7db5bf23174f85c29ccfcaa44d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20D=C3=BCrr?= Date: Mon, 14 Jan 2013 09:19:08 +0000 Subject: [PATCH] #i121482# fix attributed text search for regular expression patterns(cherry picked from commit e7fc662799e7e936753e24db8d6d3849c12b3ff4) --- i18npool/source/search/textsearch.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx index 072c0bedda6b..2df126e831fb 100644 --- a/i18npool/source/search/textsearch.cxx +++ b/i18npool/source/search/textsearch.cxx @@ -717,7 +717,7 @@ SearchResult TextSearch::RESrchFrwrd( const OUString& searchStr, // 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(;;)