[Libreoffice-commits] core.git: Branch 'aoo/trunk' - xmlhelp/source
Herbert Dürr
hdu at apache.org
Thu Dec 5 10:09:25 PST 2013
xmlhelp/source/com/sun/star/help/HelpSearch.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d12312e8de0f0af1b3f7be5ced034972e32948bf
Author: Herbert Dürr <hdu at apache.org>
Date: Thu Dec 5 16:21:20 2013 +0000
#i122871# fix Help search finding more than 100 items
fixing the allocation size for the search result prevents
an ArrayIndexOutOfBoundException so that the search can
finish successfully
Patch by: hanya.runo at gmail.com
Review by: hdu at apache.org
diff --git a/xmlhelp/source/com/sun/star/help/HelpSearch.java b/xmlhelp/source/com/sun/star/help/HelpSearch.java
index 0f7f315..a95fd91 100644
--- a/xmlhelp/source/com/sun/star/help/HelpSearch.java
+++ b/xmlhelp/source/com/sun/star/help/HelpSearch.java
@@ -273,7 +273,7 @@ public class HelpSearch
// Perform search
TopDocs aHits = searcher.search( aQuery, 100 );
- int nHitCount = aHits.totalHits;
+ int nHitCount = aHits.scoreDocs.length;
String aDocs[] = new String[nHitCount];
float aScores[] = null;
More information about the Libreoffice-commits
mailing list