From 0ba3ea47e260e8fce0ede49dc3acb769db666f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Erbsh=C3=A4u=C3=9Fer?= Date: Fri, 1 Jan 2021 18:42:09 +0100 Subject: [PATCH] Reduced newline height in printable document. --- ucalc/Constants.cs | 2 +- ucalc/PrintWindow.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ucalc/Constants.cs b/ucalc/Constants.cs index cb2cfd5..5543894 100644 --- a/ucalc/Constants.cs +++ b/ucalc/Constants.cs @@ -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, diff --git a/ucalc/PrintWindow.xaml.cs b/ucalc/PrintWindow.xaml.cs index ad92fd3..d79f524 100644 --- a/ucalc/PrintWindow.xaml.cs +++ b/ucalc/PrintWindow.xaml.cs @@ -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) {