Browse Source

* Correct line number

git-svn-id: trunk@47344 -
michael 4 years ago
parent
commit
af415ddc0d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-json/src/jsonscanner.pp

+ 2 - 0
packages/fcl-json/src/jsonscanner.pp

@@ -169,6 +169,8 @@ constructor TJSONScanner.Create(const aSource: RawByteString; AOptions: TJSONOpt
 begin
   FSource:=aSource;
   FCurPos:=PAnsiChar(FSource);
+  if FCurPos<>Nil then
+    FCurRow:=1;
   FOptions:=AOptions;
 end;