Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Krasilnikov2006-06-19 11:23:22 +0000
committerOleg Krasilnikov2006-06-19 11:23:22 +0000
commitdafc8e447850f27d36376229863e1a542e3bdaff (patch)
treed0a51ad802dbff1c698d0c9aa7d54138e266b3df
parent74e3308a05729aeaf4841395f96c1c1d10c7764f (diff)
downloadorg.eclipse.cdt-dafc8e447850f27d36376229863e1a542e3bdaff.tar.gz
org.eclipse.cdt-dafc8e447850f27d36376229863e1a542e3bdaff.tar.xz
org.eclipse.cdt-dafc8e447850f27d36376229863e1a542e3bdaff.zip
Bug 142465 :Exception when expanding binary node in CView
Avoid duplication source files. 1-line change.
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java
index 9d1e8ccb5a..9ee8159385 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java
@@ -336,7 +336,8 @@ public class Binary extends Openable implements IBinary {
else
tu = new ExternalTranslationUnit(this, path, id);
- info.addChild(tu);
+ if (! info.includesChild(tu))
+ info.addChild(tu);
}
}
return true;

Back to the top