From 4efec4cfddc1e972fa387f0324a69bc12f8f8d5d Mon Sep 17 00:00:00 2001 From: John Date: Wed, 16 Oct 2019 15:53:54 +0000 Subject: [PATCH] =?UTF-8?q?B2019-155=20Show=20a=20tick=20mark=20(=E2=80=98?= =?UTF-8?q?)=20when=20displaying=20a=20hard=20space=20in=20the=20Step=20Ed?= =?UTF-8?q?itor=20(but=20not=20in=20the=20current=20edit=20window)=20for?= =?UTF-8?q?=20all=20fonts,=20proportional=20and=20fixed=20spaced.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepRTB.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index e54da5ab..c73b6ec1 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -639,10 +639,9 @@ namespace Volian.Controls.Library // (Proportional) font, the hardspace appeared to be 2 spaces (really it was showing the space as the widest // width character). So instead of a hard space, a single quote "'" was used to designate where the hardspace // would be. This is only used for display, printing works. - if (_MyItemInfo.FormatStepData != null && _MyItemInfo.FormatStepData.Font.FontIsProportional()) - Rtf = Rtf.Replace(@"\'a0", "'"); - else - Rtf = Rtf.Replace(@"\'a0", @"\u1?"); + //B2019-155 Hard spaces were displace as a square box for non-proportional fonts. + // To fix this, we removed the check for a proportional font and now replace the hard space with a "'" mark for all fonts + Rtf = Rtf.Replace(@"\'a0", "'"); } OrigRTF = Rtf; _InitializingRTB = false;