From 0ef0a57945f52fe7cc8a6a8b0d8e3807b6dfd020 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 14 Apr 2020 13:19:05 +0000 Subject: [PATCH] B2020-054: Equations in Chronology/Summary of changes reports print many lines of code --- PROMS/Volian.Print.Library/PDFChronologyReport.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/PDFChronologyReport.cs b/PROMS/Volian.Print.Library/PDFChronologyReport.cs index 2aefd200..35cdd858 100644 --- a/PROMS/Volian.Print.Library/PDFChronologyReport.cs +++ b/PROMS/Volian.Print.Library/PDFChronologyReport.cs @@ -393,7 +393,7 @@ namespace Volian.Print.Library string txt = null; if ((cai.Text==null || cai.Text=="") && (cai.Type == 20036 || cai.Type == 20037 || cai.Type == 20038 || cai.Type == 20039)) txt = "Embedded Image"; - else if ((cai.Text == null || cai.Text == "") && (cai.Type > 20099)) + else if (cai.Type > 20099) // B2020-054: Always put out 'Equation' (removed checking for null text) txt = "Equation"; else txt = ItemInfo.ConvertToDisplayText(cai.Text); @@ -1538,8 +1538,11 @@ namespace Volian.Print.Library else { string txt = null; - if ((cai.Text==null || cai.Text=="") && (cai.Type == 20036 || cai.Type == 20037 || cai.Type == 20038 || cai.Type == 20039)) + if ((cai.Text == null || cai.Text == "") && (cai.Type == 20036 || cai.Type == 20037 || cai.Type == 20038 || cai.Type == 20039)) txt = "Embedded Image"; + // B2020-054: Always put out 'Equation' for equations in the summary report + else if (cai.Type > 20099) + txt = "Equation"; else txt = ItemInfo.ConvertToDisplayText(cai.Text); // Add Parent/Child information if applicable