Ignore:
Timestamp:
Jul 17, 2012, 10:14:41 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Show tab sheets of source code forms on file click in project manager.
  • Fixed: Compilation error message line calculation on Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompiler.pas

    r59 r62  
    111111begin
    112112  I := 0;
    113   while (I < Files.Count) and (ExtractFileNameOnly(Files[I]) <> Name) do Inc(I);
     113  while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I);
    114114  if I < Files.Count then begin
    115115    if FileExistsUTF8(Files[I]) then begin
     
    127127begin
    128128  I := 0;
    129   while (I < Files.Count) and (ExtractFileNameOnly(Files[I]) <> Name) do Inc(I);
     129  while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I);
    130130  if I >= Files.Count then begin
    131131    SaveStringToFile(Name, Content);
     
    212212  if MainSource <> '' then begin
    213213    Analyzer.FileName := MainSource;
    214     Analyzer.OnGetSource(ExtractFileNameOnly(Analyzer.FileName), Analyzer.SourceCode);
     214    Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode);
    215215    Analyzer.Process;
    216216    //ShowMessage(IntToHex(Integer(Addr(Analyzer.OnGetSource)), 8));
Note: See TracChangeset for help on using the changeset viewer.