From fff0233bf3958766795eefc21fb7feb03b319fd4 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 23 Jan 2014 14:25:12 +0000 Subject: [PATCH] Fix B2014-003: parsing of rtf was incorrect for link with symbol and text after link --- PROMS/Volian.Controls.Library/DisplayText.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index 50f02c2d..e15e831e 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -1308,17 +1308,22 @@ namespace Volian.Controls.Library // Find the 'end comment' for this 0 && (endTextIndx < 0 || endTextIndx > endTextIndx2)) - endTextIndx = endTextIndx2; - vte.Text = text.Substring(endStartTknIndx + 4, endTextIndx - endStartTknIndx - 4); // 4 for \v0 + endTextIndx = endTextIndx2; + vte.Text = text.Substring(endStartTknIndx + startAdj, endTextIndx - endStartTknIndx - startAdj); // 4 for \v0 // Now get the link part. It can be terminated by a '\v0' or an [END> int endLinkIndxV = text.IndexOf(@"\v0 ", linkIndx);