Added other symbol font names (Symbol, VESymb) to IsSymbolFont.

Check for null mySection before checking details on a new node.
Error 177 - Hidden property added to use for collapse rather than Visible.
Error 173 - Use DeleteItemInfoAndChildren on Cancel of a new ItemInfo.
This commit is contained in:
Rich
2010-11-29 16:31:41 +00:00
parent 29e4ffceea
commit 9de2eb9d9a
4 changed files with 21 additions and 11 deletions

View File

@@ -285,11 +285,11 @@ namespace LBWordLibrary
return ReplaceSymbolCharacters(GetRangeText(myRange));
}
}
private static string[] SymbolFontName = { "VolianDraw", "WingDings" };
private static string[] SymbolFontName = { "VolianDraw", "WingDings", "VESymb", "VESymbFix", "Symbol" };
private static bool IsSymbolFont(string fontName)
{
foreach (string symbolFont in SymbolFontName)
if (symbolFont.ToUpper() == fontName.ToUpper())
if (fontName.ToUpper().StartsWith(symbolFont.ToUpper()))
return true;
return false;
}