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:
parent
fc4c6c5718
commit
6306740d2b
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue