mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
bug in APathEntry.equals()
This commit is contained in:
parent
1fefb24038
commit
c421d5746a
2 changed files with 7 additions and 1 deletions
|
@ -108,6 +108,12 @@ public abstract class APathEntry extends PathEntry {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
IPath otherBaseRef = otherEntry.getBaseReference();
|
||||
if (baseRef != null) {
|
||||
if (otherBaseRef != null && !baseRef.equals(otherBaseRef)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return super.equals(obj);
|
||||
|
|
|
@ -45,7 +45,7 @@ public class IncludeReference extends Openable implements IIncludeReference {
|
|||
}
|
||||
|
||||
public IncludeReference(ICElement celement, IIncludeEntry entry, IPath path) {
|
||||
super(celement, null, path.lastSegment(), ICElement.C_VCONTAINER);
|
||||
super(celement, null, path.toString(), ICElement.C_VCONTAINER);
|
||||
fIncludeEntry = entry;
|
||||
fPath = path;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue