From 6306740d2b143ff540a9a4029a42899217379bba Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Fri, 30 Jun 2006 08:48:36 +0000 Subject: [PATCH] Fix 69597, include entry on linked resource. --- .../org/eclipse/cdt/internal/core/model/IncludeEntry.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);