]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java
Process changes in smaller chunks
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / ModelUpdate.java
index 17eee72ee6a40861c6ebb716bbfa8199fe62c384..4e1cc4fed37efb8decac9616d92662fd2aad1cd7 100644 (file)
@@ -464,7 +464,7 @@ public abstract class ModelUpdate {
                                int e = s + getChunkSize();
                                if (e > list.size())
                                        e = list.size();
-                               List<PropertyChange> subList = updateList.getChanges().subList(e, e);
+                               List<PropertyChange> subList = list.subList(s, e);
                                if (s == 0) {
                                        session.syncRequest(new WriteRequest(vg) {
                                                public void perform(WriteGraph graph) throws DatabaseException {