# HG changeset patch # User Fiore Martin # Date 1338301939 -3600 # Node ID 2c67ac862920d8482c22211dd701559034985a49 # Parent 9e67171477bce9eeba6415ff4261ae29f6b93128 bug fix (correct haptic painting after renaming nodes and after nodes deletion with an edge with more than 2 nodes) diff -r 9e67171477bc -r 2c67ac862920 java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/DiagramEdge.java --- a/java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/DiagramEdge.java Wed Apr 25 17:09:09 2012 +0100 +++ b/java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/DiagramEdge.java Tue May 29 15:32:19 2012 +0100 @@ -147,7 +147,7 @@ * @param n the node to be removed * @return true if the inner collection changed as a result of the call */ - public abstract boolean removeNode(DiagramNode n); + public abstract boolean removeNode(DiagramNode n, Object source); /** * Connect a list of nodes with this edge diff -r 9e67171477bc -r 2c67ac862920 java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/DiagramModel.java --- a/java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/DiagramModel.java Wed Apr 25 17:09:09 2012 +0100 +++ b/java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/DiagramModel.java Tue May 29 15:32:19 2012 +0100 @@ -612,10 +612,10 @@ ArrayList edgesToRemove = new ArrayList(edges.size()); for(int i=0; i