]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/elements/TextGridNode.java
Preliminary implementation to update only changed profile entries
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / elements / TextGridNode.java
index f482890e9f762f724cf1373b56dfa09465e614ad..be0f23a590f62bb2a5009641a77d30b2847cd6ae 100644 (file)
@@ -50,7 +50,7 @@ public class TextGridNode extends G2DParentNode implements Decoration {
 
     public static class A extends TextNode {
 
-       MonitorTextGridResult cache = null;
+        transient MonitorTextGridResult cache = null;
        
         private static final long serialVersionUID = -4519849713591842241L;
 
@@ -138,7 +138,7 @@ public class TextGridNode extends G2DParentNode implements Decoration {
         }
     }
 
-    private int computeRows() {
+    public int computeRows() {
         MaxY maxy = new MaxY();
         nodes.forEachKey(maxy);
         return maxy.max;
@@ -245,6 +245,7 @@ public class TextGridNode extends G2DParentNode implements Decoration {
     }
 
     public void removeRow(int y) {
+        rowIds.remove(y);
         List<Cell> row = peekRowCells(y);
         if (row.isEmpty())
             return;