Browse Source

* Validate report before running it (bug ID 33334), fix typo

git-svn-id: trunk@38423 -
michael 7 years ago
parent
commit
2f2597341e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-report/src/fpreport.pp

+ 1 - 1
packages/fcl-report/src/fpreport.pp

@@ -7834,7 +7834,7 @@ begin
   if PageCount=0 then
     aErrors.Add(SErrNeedPages);
   For I:=0 to PageCount-1 do
-    Pages[1].Validate(aErrors);
+    Pages[i].Validate(aErrors);
 end;
 
 procedure TFPCustomReport.Validate;