diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/ui/Table.java | 4 |
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; } |