LazFileUtils: Fix TCustomShellTreeView.GetPathFromNode when Node.Text from "RootNode" <> GetRootPath.

git-svn-id: trunk@41157 -
This commit is contained in:
bart 2013-05-12 15:29:21 +00:00
parent 0ebfa05375
commit 4afc35bcd3

View File

@ -744,7 +744,11 @@ begin
while (ANode.Parent <> nil) do
begin
ANode := ANode.Parent;
Result := IncludeTrailingPathDelimiter(ANode.Text) + Result;
if (ANode.Parent = nil) and (GetRootPath <> '') then
//Node.Text of rootnode may not be fully qualified
Result := GetRootPath + Result
else
Result := IncludeTrailingPathDelimiter(ANode.Text) + Result;
end;
end;
if not FilenameIsAbsolute(Result) then