Fix logic that looks at symbol characters in non-symbol fonts
This commit is contained in:
parent
f3675b7ed1
commit
7f5702698a
@ -319,10 +319,13 @@ namespace LBWordLibrary
|
|||||||
myRange.End = problem.Index + problem.Length + offset;
|
myRange.End = problem.Index + problem.Length + offset;
|
||||||
int newOffset = FindRangeOffset(myRange, problem, offset, end);
|
int newOffset = FindRangeOffset(myRange, problem, offset, end);
|
||||||
string fontName = myRange.Font.Name;
|
string fontName = myRange.Font.Name;
|
||||||
if (IsSymbolFont(fontName) && !fontHasSymbols.Contains(fontName))
|
if (IsSymbolFont(fontName))
|
||||||
{
|
{
|
||||||
_MyLog.InfoFormat("Font '{0}' has Symbols", fontName);
|
if( !fontHasSymbols.Contains(fontName))
|
||||||
fontHasSymbols.Add(fontName);
|
{
|
||||||
|
fontHasSymbols.Add(fontName);
|
||||||
|
_MyLog.InfoFormat("Font '{0}' has Symbols", fontName);
|
||||||
|
}
|
||||||
//Console.WriteLine("Font '{0}' has Symbols", myRange.Font.Name);
|
//Console.WriteLine("Font '{0}' has Symbols", myRange.Font.Name);
|
||||||
//return true;
|
//return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user