--- oup/current/Tools/RawEdit.pas 2007/02/25 17:20:22 113 +++ oup/current/Tools/RawEdit.pas 2007/05/02 15:16:58 175 @@ -310,8 +310,10 @@ begin str := ''; if hex.SelCount = 0 then begin - while (hex.Data[hex.SelStart + j] > 0) and ((hex.SelStart + j) < hex.DataSize) do + while (hex.SelStart + j) < hex.DataSize do begin + if hex.Data[hex.SelStart + j] = 0 then + Break; if hex.Data[hex.selstart + j] >= 32 then str := str + Char(hex.Data[hex.SelStart + j]) else