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 a3ff6a3ac3f..d1afaf9b58a 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 @@ -240,11 +240,11 @@ public class PDOMInclude implements IIndexFragmentInclude { private void computeName() throws CoreException { if (isResolved()) { fName= getIncludes().getLocation().getURI().getPath(); - fName= fName.substring(fName.lastIndexOf('/')+1); } else { fName= getNameForUnresolved().getString(); } + fName= fName.substring(fName.lastIndexOf('/')+1); } public void convertToUnresolved() throws CoreException {