Reduced newline height in printable document.

This commit is contained in:
Tobias Erbshäußer
2021-01-01 18:42:09 +01:00
parent ff540c6f0c
commit 0ba3ea47e2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ namespace UCalc
PrintDefaultFontSize = (double) converter.ConvertFromInvariantString("14pt");
PrintSubjectFontSize = (double) converter.ConvertFromInvariantString("16pt");
PrintNewlineFontSize = (double) converter.ConvertFromInvariantString("4pt");
PrintNewlineFontSize = (double) converter.ConvertFromInvariantString("14pt");
// ReSharper restore PossibleNullReferenceException
DinA4Padding = new Thickness(dinA4MarginLeftRight, dinA4MarginTopBottom, dinA4MarginLeftRight,
+2 -2
View File
@@ -111,7 +111,7 @@ namespace UCalc
var cell = new TableCell {ColumnSpan = 2};
row.Cells.Add(cell);
cell.Blocks.Add(new Paragraph(new Run(new string('\n', count))
cell.Blocks.Add(new Paragraph(new Run(new string('\n', count - 1))
{FontSize = Constants.PrintNewlineFontSize}));
}
@@ -230,7 +230,7 @@ namespace UCalc
AddCost(result.TotalAmount > 0 ? "Einmalige Nachzahlung" : "Einmalige Rückzahlung", result.TotalAmount,
true);
AddLineBreaks(2);
AddLineBreaks(1);
if (result.TotalAmount > 0)
{