]> source.dussan.org Git - vaadin-framework.git/commitdiff
small fix
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 11 Feb 2008 14:18:50 +0000 (14:18 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 11 Feb 2008 14:18:50 +0000 (14:18 +0000)
svn changeset:3767/svn branch:trunk

src/com/itmill/toolkit/ui/Table.java

index 3913809f8fd7111769266a4618ac8f250bb013c0..9ded6ce04105ba53b685d9ae0c94797f38538794 100644 (file)
@@ -1231,8 +1231,8 @@ public class Table extends AbstractSelect implements Action.Container,
                             if (index < firstIndexNotInCache
                                     && index >= pageBufferFirstIndex) {
                                 // we have data already in our cache,
-                                    // recycle it instead of fetching it via
-                                    // getValue/getPropertyValue
+                                // recycle it instead of fetching it via
+                                // getValue/getPropertyValue
                                 int indexInOldBuffer = index
                                         - pageBufferFirstIndex;
                                 value = pageBuffer[CELL_FIRSTCOL + j][indexInOldBuffer];
@@ -2216,6 +2216,7 @@ public class Table extends AbstractSelect implements Action.Container,
         // ensure that page still has first item in page
         setCurrentPageFirstItemIndex(getCurrentPageFirstItemIndex());
 
+        resetPageBuffer();
         refreshRenderedCells();
     }