* try to resolve relative url first in current package before current module,

solves bug #17146

git-svn-id: trunk@15768 -
This commit is contained in:
marco 2010-08-10 23:25:18 +00:00
parent b1b6ef237a
commit 1e7e80bfb3

View File

@ -984,6 +984,10 @@ begin
Result := FindAbsoluteLink(ALinkDest)
else
begin
Result := ResolveLink(AModule, amodule.packagename + '.' + ALinkDest);
if Length(Result) > 0 then
exit;
Result := ResolveLink(AModule, AModule.PathName + '.' + ALinkDest);
if Length(Result) > 0 then
exit;