mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Follow-up fix for bug 161529
This commit is contained in:
parent
a6a24e957f
commit
25232db42d
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ public class OpenIncludeAction extends Action {
|
||||||
IPath rPath = proxy.requestResource().getLocation();
|
IPath rPath = proxy.requestResource().getLocation();
|
||||||
int numSegToRemove = rPath.segmentCount() - name.segmentCount();
|
int numSegToRemove = rPath.segmentCount() - name.segmentCount();
|
||||||
IPath sPath = rPath.removeFirstSegments(numSegToRemove);
|
IPath sPath = rPath.removeFirstSegments(numSegToRemove);
|
||||||
|
sPath = sPath.setDevice(name.getDevice());
|
||||||
if (sPath.equals(name))
|
if (sPath.equals(name))
|
||||||
list.add(rPath);
|
list.add(rPath);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue