diff --git a/Src/xWorks/LcmWordGenerator.cs b/Src/xWorks/LcmWordGenerator.cs index 989e6168c0..dd48bd9c18 100644 --- a/Src/xWorks/LcmWordGenerator.cs +++ b/Src/xWorks/LcmWordGenerator.cs @@ -36,7 +36,7 @@ public class LcmWordGenerator : ILcmContentGenerator, ILcmStylesGenerator { private LcmCache Cache { get; } private static Styles _styleSheet { get; set; } = new Styles(); - private static Dictionary _styleDictionary = new Dictionary(); + private static Dictionary _styleDictionary = new Dictionary(); private ReadOnlyPropertyTable _propertyTable; internal const int maxImageHeightInches = 1; internal const int maxImageWidthInches = 1; @@ -129,17 +129,16 @@ public static void SavePublishedDocx(int[] entryHvos, DictionaryPublicationDecor stylePart = AddStylesPartToPackage(fragment.DocFrag); // Add generated styles into the stylesheet from the dictionary - foreach (var stylesItem in _styleDictionary.Values) + foreach (var style in _styleDictionary.Values) { - foreach (var style in stylesItem.Descendants