diff options
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/IndexData.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/IndexData.java b/src/main/java/com/healthmarketscience/jackcess/impl/IndexData.java index 1c430fc..c08e70b 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/IndexData.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/IndexData.java @@ -685,7 +685,9 @@ public class IndexData { { if(newEntry != null) { dataPage.addEntry(idx, newEntry); - if(!isDupeEntry) { + // if we are adding a duplicate entry, or replacing an existing entry, + // then the unique entry count doesn't change + if(!isDupeEntry && (oldEntry == null)) { ++_uniqueEntryCount; } ++_modCount; |