From 306960844b44eb1d922b3de703dac49d5638e0ca Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sat, 19 Apr 2008 01:05:59 +0000 Subject: [PATCH] oops was not updating entry size git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@335 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/SimpleIndex.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); } } -- 2.39.5