Skip to content

Commit

Permalink
Fix footer center text
Browse files Browse the repository at this point in the history
  • Loading branch information
thgossler committed Dec 26, 2022
1 parent b54aace commit 4a12b01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

# CS8602: Dereference of a possibly null reference.
dotnet_diagnostic.CS8602.severity = none

# CS8604: Possible null reference argument.
dotnet_diagnostic.CS8604.severity = none
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
.SetTextAlignment(TextAlignment.CENTER)
.SetFixedPosition(i, pageSideMargin, pageBottomMargin + textLineHeight, pageSize.GetWidth() - 2 * pageSideMargin);
canvas.Add(p);
p = StyledParagraph(ResolvePlaceholders(settings.PageHeader.TextCenter2, pdf, i))
p = StyledParagraph(ResolvePlaceholders(settings.PageFooter.TextCenter2, pdf, i))
.SetTextAlignment(TextAlignment.CENTER)
.SetFixedPosition(i, pageSideMargin, pageBottomMargin, pageSize.GetWidth() - 2 * pageSideMargin);
canvas.Add(p);
Expand Down

0 comments on commit 4a12b01

Please sign in to comment.