Browse Source

more more fixes

jascha Bohne 8 years ago
parent
commit
73e20a5f4a

+ 2 - 0
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/graphs/GraphManager.java

@@ -191,6 +191,8 @@ public class GraphManager {
 			g.addEdge(id, sourceId, targetId, e.isDirected());
 			g.getEdge(id).addAttributes(attributes);
 			if(g.getNode(Main.getInstance().getGraphManager().getActiveSubGraph() + newId) == null|| g.getNode(Main.getInstance().getGraphManager().getActiveSubGraph() + newId).getAttribute("originalElement") == null){
+				deletedEdges = new LinkedList<>();
+				deletedNode = null;
 				return;
 			}
 			String origElement = GraphHelper.propagateElementUndeletion(g, e,