Replaced PageEnd with PageStart in PageNumberWithinSection

This commit is contained in:
Simone Anile
2022-04-29 15:19:58 +02:00
parent e54e09de15
commit 24bbd06dff
+1 -1
View File
@@ -174,7 +174,7 @@ namespace QuestPDF.Fluent
public TextPageNumberDescriptor PageNumberWithinSection(string locationName)
{
return PageNumber(x => x.CurrentPage + 1 - x.GetLocation(locationName)?.PageEnd);
return PageNumber(x => x.CurrentPage + 1 - x.GetLocation(locationName)?.PageStart);
}
public TextPageNumberDescriptor TotalPagesWithinSection(string locationName)