Skip to content

Commit

Permalink
Fix: Wrong inline code detection
Browse files Browse the repository at this point in the history
  • Loading branch information
elvirbrk committed Jan 25, 2018
1 parent 89c9ebf commit bba5834
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions NoteHighlightAddin/AddIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,13 @@ private bool IsSelectedTextInline(string pageID)
System.Collections.Generic.IEnumerable<XElement> attrPos;
if (table == null)
{
if (node.Descendants(ns + "T").Where(n => n.Attribute("selected") != null && n.Attribute("selected").Value == "all").Count() > 0
&& node.Descendants(ns + "T").Where(n => n.Attribute("selected") == null || n.Attribute("selected").Value == "none").Count() > 0)
foreach (var oeNode in node.Descendants(ns + "OE"))
{
return true;
if (oeNode.Descendants(ns + "T").Where(n => n.Attribute("selected") != null && n.Attribute("selected").Value == "all").Count() > 0
&& oeNode.Descendants(ns + "T").Where(n => n.Attribute("selected") == null || n.Attribute("selected").Value == "none").Count() > 0)
{
return true;
}
}
}
}
Expand Down

0 comments on commit bba5834

Please sign in to comment.