summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Table.java
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2011-11-04 06:19:20 +0000
committerArtur Signell <artur.signell@itmill.com>2011-11-04 06:19:20 +0000
commitc097303f508f6cf1fff441be4feb03fe7c29072d (patch)
tree1b19c495138afb3bbab73596dc7fcc573202cc0a /src/com/vaadin/ui/Table.java
parent12c4745519cc3b182846998c221fb93be279c755 (diff)
downloadvaadin-framework-c097303f508f6cf1fff441be4feb03fe7c29072d.tar.gz
vaadin-framework-c097303f508f6cf1fff441be4feb03fe7c29072d.zip
#7839 Out of Sync error when using Generated Columns with TreeTable - additional fix
svn changeset:21892/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/ui/Table.java')
-rw-r--r--src/com/vaadin/ui/Table.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java
index 9107ec06ef..ef483abc70 100644
--- a/src/com/vaadin/ui/Table.java
+++ b/src/com/vaadin/ui/Table.java
@@ -1633,8 +1633,8 @@ public class Table extends AbstractSelect implements Action.Container,
* IF there is space remaining in the buffer after the rows have been
* inserted, we can keep more rows.
*/
- int numberOfOldRowsAfterInsertedRows = maxBufferSize - firstIndex
- - rows;
+ int numberOfOldRowsAfterInsertedRows = maxBufferSize
+ - firstIndexInPageBuffer - rows;
if (numberOfOldRowsAfterInsertedRows > 0) {
firstCacheRowToRemoveInPageBuffer += numberOfOldRowsAfterInsertedRows;
}