From 2de8af878b57b69f801ed0544683255de95a047c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 28 Oct 2025 11:37:13 +0100 Subject: [PATCH] MailWindow: Fix crash when generating docs for no-email and postal-where-no-email --- Elwig/Windows/MailWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Windows/MailWindow.xaml.cs b/Elwig/Windows/MailWindow.xaml.cs index 3b184e5..cb589db 100644 --- a/Elwig/Windows/MailWindow.xaml.cs +++ b/Elwig/Windows/MailWindow.xaml.cs @@ -738,7 +738,7 @@ namespace Elwig.Windows { PostalNoEmailInput.IsChecked == true ? 1 : 0; var emailMode = EmailAllInput.IsChecked == true ? 2 : EmailWishInput.IsChecked == true ? 1 : 0; - double printNum = printMode == 3 ? PostalAllCount : printMode == 2 ? PostalWishCount : printMode == 2 ? PostalNoEmailCount : 0; + double printNum = printMode == 3 ? PostalAllCount : printMode == 2 ? PostalWishCount : printMode == 1 ? PostalNoEmailCount : 0; double emailNum = emailMode == 2 ? EmailAllCount : emailMode == 1 ? EmailWishCount : 0; double totalNum = printNum + emailNum;