fix reset edge bend on change weight.

This commit is contained in:
Unick Soft
2019-06-13 19:49:02 +02:00
parent e8a985c91b
commit 2394894f72
4 changed files with 121 additions and 108 deletions

View File

@@ -304,10 +304,9 @@ DefaultHandler.prototype.MouseUp = function(pos)
var dialogButtons = {};
dialogButtons[g_save] = function() {
handler.app.DeleteObject(handler.selectedObject);
handler.selectedObject = handler.app.graph.edges[handler.app.CreateNewArc(handler.selectedObject.vertex1, handler.selectedObject.vertex2, handler.selectedObject.isDirect, document.getElementById('EdgeWeight').value)];
handler.selectedObject.SetWeight(document.getElementById('EdgeWeight').value);
handler.needRedraw = true;
handler.app.redrawGraph();