IDE: fixed view forms

git-svn-id: trunk@50169 -
This commit is contained in:
mattias 2015-10-26 09:00:03 +00:00
parent 5ccd3cef66
commit 5469545ffc

View File

@ -2948,12 +2948,14 @@ begin
CurUnitInfo.Filename, i, CurUnitInfo = ActiveUnitInfo);
end else if FilenameIsAbsolute(CurUnitInfo.Filename)
and FilenameIsPascalSource(CurUnitInfo.Filename)
and FileExistsCached(CurUnitInfo.Filename) then begin
and FileExistsCached(CurUnitInfo.Filename) then
begin
// this unit has a lfm, but the lpi does not know a ComponentName
// => maybe this component was added without the IDE
LFMFilename:=ChangeFileExt(CurUnitInfo.Filename,'.lfm');
if LoadCodeBuffer(LFMCode,LFMFilename,[lbfUpdateFromDisk,lbfCheckIfText],false)=mrOk
then begin
LFMCode:=CodeToolBoss.LoadFile(LFMFilename,true,false);
if LFMCode<>nil then
begin
ReadLFMHeader(LFMCode.Source,LFMType,LFMComponentName,LFMClassName);
if LFMComponentName<>'' then begin
anUnitName:=CurUnitInfo.SrcUnitName;