mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:39:18 +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);
|
CurUnitInfo.Filename, i, CurUnitInfo = ActiveUnitInfo);
|
||||||
end else if FilenameIsAbsolute(CurUnitInfo.Filename)
|
end else if FilenameIsAbsolute(CurUnitInfo.Filename)
|
||||||
and FilenameIsPascalSource(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
|
// this unit has a lfm, but the lpi does not know a ComponentName
|
||||||
// => maybe this component was added without the IDE
|
// => maybe this component was added without the IDE
|
||||||
LFMFilename:=ChangeFileExt(CurUnitInfo.Filename,'.lfm');
|
LFMFilename:=ChangeFileExt(CurUnitInfo.Filename,'.lfm');
|
||||||
if LoadCodeBuffer(LFMCode,LFMFilename,[lbfUpdateFromDisk,lbfCheckIfText],false)=mrOk
|
LFMCode:=CodeToolBoss.LoadFile(LFMFilename,true,false);
|
||||||
then begin
|
if LFMCode<>nil then
|
||||||
|
begin
|
||||||
ReadLFMHeader(LFMCode.Source,LFMType,LFMComponentName,LFMClassName);
|
ReadLFMHeader(LFMCode.Source,LFMType,LFMComponentName,LFMClassName);
|
||||||
if LFMComponentName<>'' then begin
|
if LFMComponentName<>'' then begin
|
||||||
anUnitName:=CurUnitInfo.SrcUnitName;
|
anUnitName:=CurUnitInfo.SrcUnitName;
|
||||||
|
Loading…
Reference in New Issue
Block a user