[Libreoffice-commits] core.git: i18npool/source
Herbert Dürr
hdu at apache.org
Thu Mar 7 11:37:26 PST 2013
i18npool/source/search/textsearch.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e6288a5d889da7db5bf23174f85c29ccfcaa44d5
Author: Herbert Dürr <hdu at apache.org>
Date: Mon Jan 14 09:19:08 2013 +0000
#i121482# fix attributed text search for regular expression patterns(cherry picked from commit e7fc662799e7e936753e24db8d6d3849c12b3ff4)
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx
index 072c0be..2df126e 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(;;)
More information about the Libreoffice-commits
mailing list