Sfoglia il codice sorgente

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

git-svn-id: trunk@42936 -
marco 6 anni fa
parent
commit
dfb00e85a0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;