Commit e8c90c6b authored by Mattias Gaertner's avatar Mattias Gaertner 🙃
Browse files

IDE: package editor: extend unit/include path: shorten paths that are not sub...

IDE: package editor: extend unit/include path: shorten paths that are not sub directories, bug #24272

git-svn-id: trunk@40803 -
parent 9f28f08a
......@@ -2022,7 +2022,7 @@ begin
// check if directory is already in the unit path of the package
NewDirectory:=ExtractFilePath(AnUnitFilename);
ShortDirectory:=NewDirectory;
LazPackage.ShortenFilename(ShortDirectory,false);
LazPackage.ShortenFilename(ShortDirectory,true);
if ShortDirectory='' then exit;
LazPackage.LongenFilename(NewDirectory);
NewDirectory:=ChompPathDelim(NewDirectory);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment