Browse Source

* fix mantis #35936 as suggested by Denis Kozlov. fdefaultoutput is a tmemorystream, so it is seekable

git-svn-id: trunk@42936 -
marco 5 years ago
parent
commit
dfb00e85a0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-base/src/csvreadwrite.pp

+ 1 - 0
packages/fcl-base/src/csvreadwrite.pp

@@ -534,6 +534,7 @@ begin
   if StreamSize > 0 then
   begin
     SetLength(Result, StreamSize);
+    FDefaultOutput.Position:=0;
     FDefaultOutput.ReadBuffer(Result[1], StreamSize);
   end;
 end;