Browse Source

* iterate only on the valid elements of the set to avoid compilation errors if the for loop is unrolled, resolves #36150

git-svn-id: trunk@43190 -
florian 5 years ago
parent
commit
2d06d7ed46
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

@@ -2498,7 +2498,7 @@ function ReportSectionsToString(AValue: TFPReportSections): string;
     lIndex: integer;
   begin
     Result := '';
-    for lIndex := Ord(Low(TFPReportSection)) to Ord(High(TFPReportSection)) do
+    for lIndex := Ord(Low(TFPReportSections)) to Ord(High(TFPReportSections)) do
     begin
       if TFPReportSection(lIndex) in AValue then
       begin