mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 11:45: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:
|
||||
* 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue