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:
Ingo Weinhold 2010-11-18 16:02:37 +00:00
parent d4443633cc
commit 3c90554279

View File

@ -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);
}