diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/SimpleIndex.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/SimpleIndex.java b/src/java/com/healthmarketscience/jackcess/SimpleIndex.java index 4dee57c..35ef662 100644 --- a/src/java/com/healthmarketscience/jackcess/SimpleIndex.java +++ b/src/java/com/healthmarketscience/jackcess/SimpleIndex.java @@ -208,10 +208,13 @@ public class SimpleIndex extends Index { @Override public void addEntry(int idx, Entry entry) { _entries.add(idx, entry); + _totalEntrySize += entry.size(); } + @Override public void removeEntry(int idx) { - _entries.remove(idx); + Entry oldEntry = _entries.remove(idx); + _totalEntrySize -= oldEntry.size(); } } |