mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
160559 fix
This commit is contained in:
parent
f38e3e0581
commit
1cd962c374
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ public class DStoreHostFile implements IHostFile
|
||||||
{
|
{
|
||||||
String path = _element.getValue();
|
String path = _element.getValue();
|
||||||
int lastSep = path.lastIndexOf('/');
|
int lastSep = path.lastIndexOf('/');
|
||||||
|
if (lastSep == -1)
|
||||||
|
lastSep = path.lastIndexOf('\\');
|
||||||
name = path.substring(lastSep + 1);
|
name = path.substring(lastSep + 1);
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue