DeliveryConfirmation: Fix text alignment
All checks were successful
Test / Run tests (push) Successful in 2m3s

This commit is contained in:
2026-03-16 19:47:33 +01:00
parent 149f455256
commit 0aefab5d63
2 changed files with 3 additions and 3 deletions

View File

@@ -297,7 +297,7 @@ namespace Elwig.Documents {
protected Cell NewTh(string? text, float fontSize = 8, int rowspan = 1, int colspan = 1, bool left = false, bool rotated = false) {
var p = new KernedParagraph(text ?? "", fontSize);
if (rotated) p.SetRotationAngle(rotated ? 0.5 * Math.PI : 0);
if (rotated) p.SetRotationAngle(0.5 * Math.PI);
var cell = NewCell(p, rowspan: rowspan, colspan: colspan)
.SetTextAlignment(left ? TextAlignment.LEFT : TextAlignment.CENTER)
.SetVerticalAlignment(VerticalAlignment.MIDDLE)