TitlePlaceholderMapper::MapPlaceholder(): Don't cut of the root '/', if the
path had less components than requested. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39483 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d4443633cc
commit
3c90554279
@ -38,7 +38,7 @@ TitlePlaceholderMapper::MapPlaceholder(char placeholder, int64 number,
|
||||
number--;
|
||||
}
|
||||
|
||||
if (index >= 0 && index + 1 < directory.Length())
|
||||
if (number == 0 && index >= 0 && index + 1 < directory.Length())
|
||||
directory.Remove(0, index + 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user