From c0947332b9de8e57de57376168fbd69f93eac0aa Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Thu, 19 Oct 2006 09:32:51 +0000 Subject: [PATCH] Fix deletion of include relation in PDOM. --- .../org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java index 86110ba2d22..56950e96c28 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMInclude.java @@ -57,7 +57,7 @@ public class PDOMInclude implements IIndexFragmentInclude { if (prevInclude != null) prevInclude.setNextInIncludedBy(nextInclude); else - ((PDOMFile) getIncludes()).setFirstIncludedBy(null); + ((PDOMFile) getIncludes()).setFirstIncludedBy(nextInclude); if (nextInclude != null) nextInclude.setPrevInIncludedBy(prevInclude); @@ -127,5 +127,4 @@ public class PDOMInclude implements IIndexFragmentInclude { public IIndexFragment getFragment() { return pdom; } - }