]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Process changes in smaller chunks 03/4903/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 2 Mar 2022 08:39:28 +0000 (10:39 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 2 Mar 2022 08:39:28 +0000 (10:39 +0200)
Fix two major bugs in the same line of code!

gitlab #39

Change-Id: I4844c865e61e0fb41d1d019b89be08551734837c

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 {