diff --git a/PROMS/LBWordLibrary/LBObjectExtension.cs b/PROMS/LBWordLibrary/LBObjectExtension.cs index 987f00b4..4c8c31e8 100644 --- a/PROMS/LBWordLibrary/LBObjectExtension.cs +++ b/PROMS/LBWordLibrary/LBObjectExtension.cs @@ -308,19 +308,24 @@ namespace LBWordLibrary //return _RegFindSymbol.IsMatch(myText); MatchCollection problems = _RegFindSymbol.Matches(myText); int offset = 0; + List alreadyProcessed = new List(); foreach (Match problem in problems) { - myRange.Start = problem.Index + offset; - myRange.End = problem.Index + problem.Length + offset; - int newOffset = FindRangeOffset(myRange, problem, offset, end); - if (IsSymbolFont(myRange.Font.Name)) + if (!alreadyProcessed.Contains(problem.Value)) { - Console.WriteLine("Font '{0}' has Symbols", myRange.Font.Name); - //return true; + myRange.Start = problem.Index + offset; + myRange.End = problem.Index + problem.Length + offset; + int newOffset = FindRangeOffset(myRange, problem, offset, end); + if (IsSymbolFont(myRange.Font.Name)) + { + //Console.WriteLine("Font '{0}' has Symbols", myRange.Font.Name); + //return true; + } + else + return myRange.Font.Name; + offset = newOffset; + alreadyProcessed.Add(problem.Value); } - else - return myRange.Font.Name; - offset = newOffset; } return null; } diff --git a/PROMS/Volian.Controls.Library/DSOTabPanel.cs b/PROMS/Volian.Controls.Library/DSOTabPanel.cs index bef50d45..63376034 100644 --- a/PROMS/Volian.Controls.Library/DSOTabPanel.cs +++ b/PROMS/Volian.Controls.Library/DSOTabPanel.cs @@ -47,7 +47,12 @@ namespace Volian.Controls.Library public DisplayTabItem MyDisplayTabItem { get { return _MyDisplayTabItem; } - set { _MyDisplayTabItem = value; } + set + { + _MyDisplayTabItem = value; + _MyDisplayTabItem.Visible = false; + _MyDisplayTabItem.Visible = true; + } } /// /// DocumentInfo record for the Word document