cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r171278 - /cocoon/blocks/unsupported/lucene/trunk/java/org/apache/cocoon/components/search/LuceneCocoonPager.java
Date Sun, 22 May 2005 03:23:29 GMT
Author: antonio
Date: Sat May 21 20:23:27 2005
New Revision: 171278

URL: http://svn.apache.org/viewcvs?rev=171278&view=rev
Log:
Fix #32728: SearchGenerator return has-previous false when meet the no. 2 page. Thanks to
Thomas Scheithauer.

Modified:
    cocoon/blocks/unsupported/lucene/trunk/java/org/apache/cocoon/components/search/LuceneCocoonPager.java

Modified: cocoon/blocks/unsupported/lucene/trunk/java/org/apache/cocoon/components/search/LuceneCocoonPager.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/unsupported/lucene/trunk/java/org/apache/cocoon/components/search/LuceneCocoonPager.java?rev=171278&r1=171277&r2=171278&view=diff
==============================================================================
--- cocoon/blocks/unsupported/lucene/trunk/java/org/apache/cocoon/components/search/LuceneCocoonPager.java
(original)
+++ cocoon/blocks/unsupported/lucene/trunk/java/org/apache/cocoon/components/search/LuceneCocoonPager.java
Sat May 21 20:23:27 2005
@@ -186,7 +186,7 @@
      * @return    Description of the Returned Value
      */
     public boolean hasPrevious() {
-        return hitsIndex > countOfHitsPerPage;
+        return hitsIndex >= countOfHitsPerPage;
     }
 
     /**



Mime
View raw message