summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-09 12:24:05 +0200
committerErich Eckner <git@eckner.net>2016-05-09 12:24:41 +0200
commitbe9870d44ffc61cd80860980358d5cc6967d03a9 (patch)
tree550be5e5362efab336c810f168cfa0298663f5bc
parentdad48798f71f7021397e12b6bc9e56434d5bea82 (diff)
downloadunits-be9870d44ffc61cd80860980358d5cc6967d03a9.tar.xz
trim nun auch in loadFromResource in mystringlistunit.pas
-rw-r--r--mystringlistunit.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas
index 79e82f9..b666f81 100644
--- a/mystringlistunit.pas
+++ b/mystringlistunit.pas
@@ -112,12 +112,15 @@ procedure tMyStringlist.loadFromResource(const s: ansiString);
var
st: tResourceStream;
buf: ansistring;
+ i: longint;
begin
st:=tResourceStream.create(hInstance,s,RT_RCDATA);
setlength(buf,st.size);
st.readBuffer(buf[1],length(buf));
st.free;
text:=buf;
+ for i:=0 to count-1 do
+ self[i]:=trim(self[i]);
end;
procedure tMyStringlist.saveToGz(const s: ansiString);