Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Src/xWorks/CssGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ private static StyleRule AdjustRuleIfParagraphNumberScheme(StyleRule rule, Confi
private static List<StyleRule> GenerateCssFromWsOptions(ConfigurableDictionaryNode configNode, DictionaryNodeWritingSystemOptions wsOptions,
string baseSelection, ReadOnlyPropertyTable propertyTable)
{
var rules = new List<StyleRule>();
var cache = propertyTable.GetValue<LcmCache>("cache");
foreach(var ws in wsOptions.Options.Where(opt => opt.IsEnabled))
{
Expand All @@ -700,10 +701,10 @@ private static List<StyleRule> GenerateCssFromWsOptions(ConfigurableDictionaryNo
if (!string.IsNullOrEmpty(configNode.Style))
wsRule.Declarations.Properties.AddRange(GenerateCssStyleFromLcmStyleSheet(configNode.Style, wsId, propertyTable));
if (!IsEmptyRule(wsRule))
return new List<StyleRule> {wsRule};
rules.Add(wsRule);
}

return new List<StyleRule>();
return rules;
}

private static List<StyleRule> GenerateCssForWritingSystemPrefix(ConfigurableDictionaryNode configNode, string baseSelection, ReadOnlyPropertyTable propertyTable)
Expand Down
Loading