From 01913ed0bab7834d39c6bedb6c9fe3f6975d3206 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 17 Jun 2014 14:06:05 +0000 Subject: [PATCH] Changing a step type was causing hyphens (dashes) to be displayed as boxes. This happened during Calvert training. This change corrects this problem. --- PROMS/Volian.Controls.Library/StepRTB.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 33824105..fdf17dda 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -427,7 +427,6 @@ namespace Volian.Controls.Library // return; //} OrigDisplayText = vlntxt; - // RHM 20101201 - Don't reset the text. Calculate the text and compare it with the existing text in AddRTFText //Text = ""; // Initialize text before add text @@ -441,6 +440,7 @@ namespace Volian.Controls.Library { if (MyItemInfo.IsStep) Font = MyFontFamily == null ? MyItemInfo.FormatStepData.Font.WindowsFont : new Font(MyFontFamily, MyItemInfo.FormatStepData.Font.WindowsFont.Size, MyItemInfo.FormatStepData.Font.WindowsFont.Style); else Font = Font = MyFontFamily == null ? MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font.WindowsFont : new Font(MyFontFamily, MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font.WindowsFont.Size, MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font.WindowsFont.Style); + LastRtf = Rtf; } } RTBAPI.SetLineSpacing(this, RTBAPI.ParaSpacing.PFS_EXACT);