mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:39:31 +02:00
IDE: fixed view forms
git-svn-id: trunk@50169 -
This commit is contained in:
parent
5ccd3cef66
commit
5469545ffc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user