diff --git a/src/main/java/com/tobiasdiez/easybind/MappedBackedList.java b/src/main/java/com/tobiasdiez/easybind/MappedBackedList.java index 8f483ee..de513b7 100644 --- a/src/main/java/com/tobiasdiez/easybind/MappedBackedList.java +++ b/src/main/java/com/tobiasdiez/easybind/MappedBackedList.java @@ -45,8 +45,8 @@ protected void sourceChanged(ListChangeListener.Change change) { } nextPermutation(from, to, permutation); } else if (change.wasUpdated()) { - backingList.set(change.getFrom(), mapper.apply(getSource().get(change.getFrom()))); - nextUpdate(change.getFrom()); + E old = backingList.set(change.getFrom(), mapper.apply(getSource().get(change.getFrom()))); + nextSet(change.getFrom(), old); } else { if (change.wasRemoved()) { int removePosition = change.getFrom();