Converter: Improve single unit file conversion. Load and save it properly.

git-svn-id: trunk@27329 -
This commit is contained in:
juha 2010-09-12 11:16:05 +00:00
parent 8e81570b80
commit 2581056c23

View File

@ -444,8 +444,16 @@ begin
Result:=CopyAndLoadFile;
if Result=mrOK then begin
Result:=ConvertUnitFile;
if Result=mrOk then
Result:=ConvertFormFile;
if Result=mrOk then begin
Result:=SaveCodeBufferToFile(fPascalBuffer,fLazUnitFilename);
if Result=mrOk then begin
Result:=LazarusIDE.DoOpenEditorFile(fLazUnitFilename,0,
[ofOnlyIfExists,ofQuiet]);
if Result=mrOk then begin
Result:=ConvertFormFile;
end;
end;
end;
end;
end;
if Result=mrOk then