]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fix to the exception flood when removing elements
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 16 Mar 2010 13:38:43 +0000 (13:38 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 16 Mar 2010 13:38:43 +0000 (13:38 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@14976 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/SysdynDiagramEditor.java

index 6a881819b4cc67db5f12c6fb01ec299e9ef173c7..4ac87e303c614c4c87b3b2530b4f4ac9c46bab8a 100644 (file)
@@ -76,6 +76,8 @@ public class SysdynDiagramEditor extends ResourceEditorPart {
         \r
         @Override\r
         public void elementRemoved(IElement element) {\r
+            mapping.rangeModified(element);\r
+            mapping.rangeModified(diagram);\r
         }\r
     };\r
        \r
@@ -137,7 +139,6 @@ public class SysdynDiagramEditor extends ResourceEditorPart {
                        \r
                        @Override\r
                        public void elementRemoved(IElement element) {\r
-                               mapping.rangeModified(diagram);                 \r
                        }\r
                        \r
                });\r