diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IncludeEntry.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IncludeEntry.java index 1fc2c2b8bcb..c9474446c47 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IncludeEntry.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/IncludeEntry.java @@ -7,6 +7,7 @@ * * Contributors: * QNX Software Systems - Initial API and implementation + * Markus Schorn (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.core.model; @@ -87,9 +88,9 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry { if (!basePath.isEmpty()) { IPath loc = basePath; if (!loc.isAbsolute()) { - IResource res = ResourcesPlugin.getWorkspace().getRoot().findMember(loc); + IResource res = ResourcesPlugin.getWorkspace().getRoot().findMember(loc.append(inc)); if (res != null) { - loc = res.getLocation(); + return res.getLocation(); } } p = loc.append(inc);