xmlhelp/source/com/sun/star/help/HelpSearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d12312e8de0f0af1b3f7be5ced034972e32948bf Author: Herbert Dürr <h...@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.r...@gmail.com Review by: h...@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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits