chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1756924 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
Date Fri, 19 Aug 2016 15:25:43 GMT
Author: fmui
Date: Fri Aug 19 15:25:42 2016
New Revision: 1756924

URL: http://svn.apache.org/viewvc?rev=1756924&view=rev
Log:
Workbench: fixed skipTo in the query frame

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java?rev=1756924&r1=1756923&r2=1756924&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
Fri Aug 19 15:25:42 2016
@@ -325,10 +325,11 @@ public class QueryFrame extends JFrame {
             long startTime = System.currentTimeMillis();
 
             int row = 0;
-            ItemIterable<QueryResult> page = results.getPage(maxHits);
+            ItemIterable<QueryResult> page = results;
             if (skipCount > 0) {
                 page = page.skipTo(skipCount);
             }
+            page = page.getPage(maxHits);
             for (QueryResult qr : page) {
                 rtm.setColumnCount(Math.max(rtm.getColumnCount(), qr.getProperties().size()));
 



Mime
View raw message