瀏覽代碼

* Correct line number

git-svn-id: trunk@47344 -
michael 4 年之前
父節點
當前提交
af415ddc0d
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;