IDE: reduced debugging

git-svn-id: trunk@21712 -
This commit is contained in:
mattias 2009-09-15 15:19:12 +00:00
parent 72b7bf8ca6
commit 9897ad8216

View File

@ -1306,13 +1306,14 @@ begin
BaseURL:='';
HTMLHint:='';
Code:=CodeToolBoss.LoadFile(ExpandedFilename,true,false);
if Code=nil then exit(shrHelpNotFound);
if (Code=nil) or (CodePos.Y<1) or (CodePos.Y>Code.LineCount)
or (CodePos.X<1) then
exit(shrHelpNotFound);
if CodeHelpBoss.GetHTMLHint(Code,CodePos.X,CodePos.Y,
[chhoSmartHint, chhoComplete, chhoComments],
BaseURL,HTMLHint,CacheWasUsed)=chprSuccess
then
exit(shrSuccess);
DebugLn(['TIDEHelpManager.GetHintForSourcePosition not found']);
Result:=shrHelpNotFound;
end;