LazEdit: MruLists.pp: don't Trim filenames when adding, it's wrong.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2735 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
lazarus-bart
2013-05-01 13:07:24 +00:00
parent 758c208d7d
commit 3c8f140dc0

View File

@ -302,7 +302,6 @@ procedure TMruList.Add(Item: String; const DoNormalizeName: Boolean = False);
//If Item is already in the list, then it gets moved to Index = 0 //If Item is already in the list, then it gets moved to Index = 0
var Index: Integer; var Index: Integer;
begin begin
Item := Trim(Item);
if (FMaxEntries <= 0) or (Item = '') then Exit; if (FMaxEntries <= 0) or (Item = '') then Exit;
Item := ExpandFileName(Item); Item := ExpandFileName(Item);
if DoNormalizeName then Item := GetFileNameOnDisk(Item); if DoNormalizeName then Item := GetFileNameOnDisk(Item);