mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 13:49:30 +02:00
LazFileUtils: Fix TCustomShellTreeView.GetPathFromNode when Node.Text from "RootNode" <> GetRootPath.
git-svn-id: trunk@41157 -
This commit is contained in:
parent
0ebfa05375
commit
4afc35bcd3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user