From: lempinen Date: Tue, 16 Mar 2010 13:38:43 +0000 (+0000) Subject: Fix to the exception flood when removing elements X-Git-Tag: simantics-1.0~18 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=65a22148f9790309febedfa003dd59ec6c8bb4f6;p=simantics%2Fsysdyn.git Fix to the exception flood when removing elements git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@14976 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/SysdynDiagramEditor.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/SysdynDiagramEditor.java index 6a881819..4ac87e30 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/SysdynDiagramEditor.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/SysdynDiagramEditor.java @@ -76,6 +76,8 @@ public class SysdynDiagramEditor extends ResourceEditorPart { @Override public void elementRemoved(IElement element) { + mapping.rangeModified(element); + mapping.rangeModified(diagram); } }; @@ -137,7 +139,6 @@ public class SysdynDiagramEditor extends ResourceEditorPart { @Override public void elementRemoved(IElement element) { - mapping.rangeModified(diagram); } });