Changeset 223 for oup


Ignore:
Timestamp:
Jun 18, 2007, 4:23:58 PM (17 years ago)
Author:
alloc
Message:
 
Location:
oup/current
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Tools/RawEdit.pas

    r221 r223  
    146146  rawinfo := ConManager.Connection[ConnectionID].GetRawInfo(fileid, datoffset);
    147147
    148   mem := nil;
    149   ConManager.Connection[ConnectionID].LoadRawFile(rawinfo.SrcID, rawinfo.SrcOffset, TStream(mem));
    150   hex.LoadFromStream(mem);
    151   ClearValues;
    152   hexSelectionChanged(Self);
     148  if rawinfo.RawSize > 0 then
     149  begin
     150    mem := nil;
     151    ConManager.Connection[ConnectionID].LoadRawFile(rawinfo.SrcID, rawinfo.SrcOffset, TStream(mem));
     152    hex.LoadFromStream(mem);
     153    ClearValues;
     154    hexSelectionChanged(Self);
     155  end
     156  else
     157  begin
     158    hex.DataSize := 0;
     159    ClearValues;
     160  end;
    153161end;
    154162
Note: See TracChangeset for help on using the changeset viewer.