1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-15 04:05:38 +02:00

Fix 69597, include entry on linked resource.

This commit is contained in:
Markus Schorn 2006-06-30 08:48:36 +00:00
parent fc4c6c5718
commit 6306740d2b

View file

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